如何处理表格中的单击按钮 [英] how to handle click on button in table

查看:73
本文介绍了如何处理表格中的单击按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击表格中的按钮时,它不会生成事件

When I click the button in table it does not generate event

<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>

推荐答案

具体按钮是什么?

以ff为例:

what button in particular?

take the ff for example:

<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>



Button7Button2_Click
Button8指的是Button4_Click

问候,
爱德华



Button7 refers to Button2_Click
Button8 refers to Button4_Click

Regards,
Eduard


这篇关于如何处理表格中的单击按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆