Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / June 2007

Tip: Looking for answers? Try searching our database.

ASP.NET CheckBox and a CheckBox in a TemplateField

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason Huang - 28 Jun 2007 11:41 GMT
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
Mr. Arnold - 28 Jun 2007 12:03 GMT
<snipped>

You should post to MS.Public.dotnet.framework.aspnet, webforms or
webcontrols.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.