Dear friends,
I have a asp.net project. In it I have a problem. When I click the select item command nothing happened. Namely not hit the row. In this project I have used master page when I over mouse on a select button I can see a title beneath javascript:_dopostbackclt001Contentplaceholder$Select01
Can me help any one
I have check also use breakpoint but nothing happened not refresh page
Thanks and regards
Rajeesh
9567841478

Tuhin PaulRank #7 · 71.9K reputationPosted Mar 17, 2024, 2:13 PM EDT
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Select") // Replace "Select" with your actual command name { int selectedRowIndex = Convert.ToInt32(e.CommandArgument); // Your logic to handle the selected item goes here } }In your content page, check you have an event handler defined for the
Commandevent of the GridView or ListView control (depending on which one you're using) that contains the select button.Tuhin PaulRank #7 · 71.9K reputationPosted Mar 17, 2024, 2:14 PM EDT
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if (e.CommandName == "Select") // Replace "Select" with your actual command name { int selectedRowIndex = Convert.ToInt32(e.CommandArgument); // Your logic to handle the selected item goes here } }In your content page, check you have an event handler defined for the
Commandevent of the GridView or ListView control (depending on which one you're using) that contains the select button.Tuhin PaulRank #7 · 71.9K reputationPosted Mar 17, 2024, 2:14 PM EDT
the event handler method name (
GridView1_RowCommandin this example) matches the one specified in theOnRowCommandattribute of the GridView in your HTML markup-