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