$(document).ready(function() { $('#<%=DropDownList1.ClientID %>').change(function() { if (($("#<%=DropDownList1.ClientID %> option:selected").val() == "0")) { ... // do your stuff } else { // do your stuff }
public void User_Click_detail(object sender, EventArgs e) { LinkButton LB = (LinkButton)sender; GridViewRow Grid1 = (GridViewRow)LB.NamingContainer; ... int indexid = Convert.ToInt32((GridView1.DataKeys[Grid1.RowIndex].Values[0].ToString())); //perform CRUD on based on indexid value }