hello sir
How to set Linkbutton commandargument using JavaScript
i am using these articles
its working fine
<asp:LinkButton ID="LinkButton2" runat="server" CommandName="Select" CommandArgument='<%# Eval("[PostId]") %>'>add</asp:LinkButton>
now i need to add set Linkbutton commandargument using JavaScript here below code:
function OnSuccess(response) {
var xmlDoc = $.parseXML(response.d);
var xml = $(xmlDoc);
pageCount = parseInt(xml.find("PageCount").eq(0).find("PageCount").text());
var customers = xml.find("Images");
$("[id$=gvImages] .loader").remove();
customers.each(function () {
var customer = $(this);
var hv = $("#" + '<%= hidClientField.ClientID %>').val();
var row = $("[id$=gvImages] tr").eq(1).clone(true);
//$(row).find('[id*=lblId]').html(customer.find("PostId").text());
$(row).find('[id*=lblName]').html(customer.find("Title").text());
$(row).find('[id*=img1]').attr('src', customer.find("ImgPoster").text());
$(row).find('[id*=HyperLink2]').attr('href', 'Post_Details.aspx?id=' + customer.find("NavigationUrl").text() + '&PostId=' + customer.find("PostId").text() + '&Title=' + customer.find("Title").text());
$(row).find('[id*=HiddenField3]').attr('value', customer.find("PostId").text());
$("[id$=gvImages]").append(row);
});
$("#loader").hide();
}