title: Way to call server side function from onclick event in gridview?
body: <p>I don't love having a 'Select' linkbutton visible in my gridview in some cases.  I would prefer to use the onclick Javascript event to trigger the function, but I would prefer not to perform a postback using the ClientID in the querystring to perform that.  The function being called (LoadProjects) simply hides the current panel with this gridview and shows another one after databinding that second gridview.</p>
  
  <pre><code>protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
  {
      ClientID = Int16.Parse(GridView1.SelectedValue.ToString());
      LoadProjects(ClientID);
  }
  
  
  protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
  {
      if (e.Row.RowType == DataControlRowType.DataRow)
      {
          e.Row.Attributes.Add("onclick", "location='somepage.aspx?ClientID=" + e.Row.Cells[1].Text + "'");
          e.Row.Attributes.Add("style", "cursor:pointer;");
       }
      if (e.Row.RowType == DataControlRowType.Header)
      {
      }
      e.Row.Cells[1].Visible = false;
  }
  </code></pre>
  
  <p>Is there a way to call the <code>LoadProjects()</code> function from the onclick event without using querystrings?</p>