Hi,
I pass a parameter from c# to jquery and receive it back at post back step as follows:
C#:
row.Attributes.Add("onClick", "return func(" + msg.Id + ");");
jquery:
function func(recId) {
__doPostBack('DivClicked', recId);
}
Page_Laod:
if (Page.IsPostBack)
{
string target = Request["__EVENTTARGET"];
if (target == "DivClicked")
{
string id = Request["__EVENTARGUMENT"];
Response.Redirect("MyPage.aspx?senderId=" + id);
}
}
How can i pass and receive multiple parameters using the above way?
Thanks.