我想通过 DataList 中的按钮单击事件来更改按钮的状态。请在这方面帮助我。
<asp:DataList ID="DataList1" CaptionAlign="Right" runat="server" Width="100%" Visible="true">
<ItemTemplate>
<table style="border-bottom:0px; border-left:0px; border-right:0px;" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="120px"><asp:Label ID="lbl_ccode" runat="server" Text='<%#Bind("Fld_Couponcode")%>' ></asp:Label></td>
<td width="140px"><asp:Label ID="lbl_cval" runat="server" Text='<%#Bind("Fld_CouponValue")%>' ></asp:Label></td>
<td width="140px"><asp:Label ID="bl_status" runat="server" Text='<%#Bind("fld_status")%>' ></asp:Label></td>
<td width="140px"><asp:Button ID="btnstatus" runat="server" Text='<%#Bind("fld_status")%>' /></td>
</tr> </table>
</ItemTemplate>
<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
<HeaderStyle BackColor="#507CD1" Font-Bold="True" HorizontalAlign="Left" ForeColor="White" />
</asp:DataList>