problem with gridview onclick event
-
hello i'm looking for a way to call a c#-method by clicking on a row in a gridview. actually i try at first to select something , so i put this code in my gridview onRowCreated-method and it works.
e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.gvResultview, "Select$" + e.Row.RowIndex);
but how can i call a c#-method by a click event ??? thanks a lot for help ! -
hello i'm looking for a way to call a c#-method by clicking on a row in a gridview. actually i try at first to select something , so i put this code in my gridview onRowCreated-method and it works.
e.Row.Attributes["onclick"] = ClientScript.GetPostBackClientHyperlink(this.gvResultview, "Select$" + e.Row.RowIndex);
but how can i call a c#-method by a click event ??? thanks a lot for help !U can use Command Event of GridView....
-
U can use Command Event of GridView....
-
What exactly u want to do please tell me in detail and also post a new thread.So that I can help u... Thanks...