Click here to Skip to main content
15,920,801 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I click the button in table it does not generate event

XML
<asp:Table ID="Table1" runat="server" CellPadding="5"
GridLines="horizontal" HorizontalAlign="Center" BackColor="Aqua">
   <asp:TableRow>
     <asp:TableCell> <asp:Label ID="Label4" runat="server" Text="Category Name"></asp:Label></asp:TableCell>
     <asp:TableCell>  <asp:TextBox ID="TextBox3" runat="server" BackColor="Bisque"></asp:TextBox></asp:TableCell>
   </asp:TableRow>

    <asp:TableRow>
     <asp:TableCell> <asp:Button ID="Button5" runat="server" onclick="Button1_Click" Text="Submit" />
      <asp:Button ID="Button6" runat="server" onclick="Button3_Click" Text="Back" /></asp:Label></asp:TableCell>
     <asp:TableCell> <asp:Button ID="Button7" runat="server" onclick="Button2_Click" Text="Logout" />
      <asp:Button ID="Button8" runat="server" onclick="Button4_Click"
            Text="Category View" /></asp:TableCell>
   </asp:TableRow>
</asp:Table>
Posted
Comments
D K N T H 29-Nov-11 1:49am    
please provide more specific details.. thanks

1 solution

what button in particular?

take the ff for example:

XML
<asp:TableCell> <asp:Button ID="Button7" runat="server" onclick="Button2_Click" Text="Logout" />
      <asp:Button ID="Button8" runat="server" onclick="Button4_Click"
            Text="Category View" /></asp:TableCell>


Button7 refers to Button2_Click
Button8 refers to Button4_Click

Regards,
Eduard
 
Share this answer
 

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