Click here to Skip to main content
15,867,308 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello, I have problem with bootstrap menu. I would like runing Bootstrap menu and GridView1_RowCommand together after clicked botton. When i have this code working GridView1_RowCommand.
ASP.NET
<asp:Button ID="btnExecutiveGenerate" runat="server" Text="Generate"
  CommandName="GenerateExecutive" CommandArgument='<%# Eval("IndividualID") %>'  OnClientClick="GridView1_RowCommand" />

When I add method to running bootstrap like this ,doesen't work GridView_RowCommand.

ASP.NET
<asp:Button ID='btn2' runat="server" Text="Edit" 
ControlStyle-CssClass="btn btn-info"
 href="#my_modal_edit" data-toggle="modal" data-id='<%# Eval("IndividualID") %>' CssClass="btn btn-info" CommandName="GenerateExecutive" 
CommandArgument='<%# Eval("IndividualID") %>'OnClientClick="GridView1_RowCommand"/>

Someone have idea how it fix?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900