Thursday, March 04, 2010

VS 2010 RC ASP.NET - Tab Control Designer Bug

I just discovered there is a bug in the RC version of VS 2010 it is not generating the designer code for controls within an Ajax Tab Control. Have a look here

In VS 2008 the following

<:asp:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="1">
<:asp:TabPanel runat="server" HeaderText="Contacts" ID="TabPanel1">
<:ContentTemplate>
<:asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
<:ContentTemplate>
<:asp:TextBox ID="txJoe" runat="server">
<:/asp:TextBox>
<:/ContentTemplate>
<:/asp:UpdatePanel>
<:/ContentTemplate>
<:/asp:TabPanel>
<:/asp:TabContainer>

Will generate the following line in the designer code file
             protected global::System.Web.UI.WebControls.TextBox txJoe;

However in VS2010 this does not get generated and so you cannot access the control in your code behind file. Hopefully we will get a fix soon and don't have to wait for the RTM.

No comments:

Post a Comment