I am using Asp.Net/C# in my project , in one of my pages I have a GridView and I am using the following line to handle row click
e.Row.Attributes.Add("onclick", "location='Default.aspx?id=" + e.Row.Cells[0].Text + "'");
This is working fine , however I have a requirement to call a jquery function which displays a popup , here is the function
function ShowDialog(modal) {
$("#popupmask").show();
$("#popup").fadeIn(300);
if (modal) {
$("#popupmask").unbind("click");
}
else {
$("#popupmask").click(function(e) {
HideDialog();
});
}
}
Can anyone suggest me how can I call jquery function on row click of Asp.Net Gridview
Thanks