J
Jason Huang
Hi,
In my ASPNET 2.0 C# Web form, what's the difference between a CheckBox and
a TemplateField's CheckBox?
<asp:CheckBox id="CheckBoxNormal" runat="server"
AutoPostBack="True" />
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:CheckBox ID="tpCheckBox" runat="server" AutoPostBack="true" />
</ItemTemplate>
</asp:TemplateField>
In the Page_Load, I can have the
CheckBoxNormal.CheckedChanged += new EventHandler(this.Check_Clicked);
But it won't work in the
tpCheckBoxl.CheckedChanged += new EventHandler(this.Check_Clicked);
Thanks for help.
Jason
In my ASPNET 2.0 C# Web form, what's the difference between a CheckBox and
a TemplateField's CheckBox?
<asp:CheckBox id="CheckBoxNormal" runat="server"
AutoPostBack="True" />
<asp:TemplateField HeaderText="Select">
<ItemTemplate>
<asp:CheckBox ID="tpCheckBox" runat="server" AutoPostBack="true" />
</ItemTemplate>
</asp:TemplateField>
In the Page_Load, I can have the
CheckBoxNormal.CheckedChanged += new EventHandler(this.Check_Clicked);
But it won't work in the
tpCheckBoxl.CheckedChanged += new EventHandler(this.Check_Clicked);
Thanks for help.
Jason