Search

Code Generation in 2010 RC doesn't work the same as 2008 for ASP.NET Application by MPAULUS

Active

22
0
Sign in
to vote
Type: Bug
ID: 533945
Opened: 2/16/2010 5:19:41 AM
Access Restriction: Public
1
Workaround(s)
15
User(s) can reproduce this bug
I have an ASP.NET application that uses the ajax control toolkit's tabcontainer. When the designer file is created in 2008 the controls within the tabcontainer are generated in the code behind, in 2010 they are not.

It appears that the desinger is not paying attention to the ParseChildrenAttribute

Details (expand)

Product Language

English

Version

Visual Studio 2010 Release Candidate

Operating System

Windows 7

Operating System Language

English

Steps to Reproduce

Create Web Application and add:

     <ajaxToolkit:TabContainer ID="TestTabContainer" runat="server">
            <ajaxToolkit:TabPanel ID="TestTabPanel" runat="server" HeaderText="Test">
                <ContentTemplate>
                    <asp:TextBox ID="TextBox1" runat="server" />
                </ContentTemplate>
            </ajaxToolkit:TabPanel>
        </ajaxToolkit:TabContainer>

Actual Results

No designer code generated for TestTabPanel or TextBox1

Partial Public Class _Default

    '''<summary>
    '''form1 control.
    '''</summary>
    '''<remarks>
    '''Auto-generated field.
    '''To modify move field declaration from designer file to code-behind file.
    '''</remarks>
    Protected WithEvents form1 As Global.System.Web.UI.HtmlControls.HtmlForm

    '''<summary>
    '''TestTabContainer control.
    '''</summary>
    '''<remarks>
    '''Auto-generated field.
    '''To modify move field declaration from designer file to code-behind file.
    '''</remarks>
    Protected WithEvents TestTabContainer As Global.AjaxControlToolkit.TabContainer
End Class

Expected Results

Code generated for TestTabPanel or TextBox1

Partial Public Class _Default

    '''<summary>
    '''form1 control.
    '''</summary>
    '''<remarks>
    '''Auto-generated field.
    '''To modify move field declaration from designer file to code-behind file.
    '''</remarks>
    Protected WithEvents form1 As Global.System.Web.UI.HtmlControls.HtmlForm

    '''<summary>
    '''TestTabContainer control.
    '''</summary>
    '''<remarks>
    '''Auto-generated field.
    '''To modify move field declaration from designer file to code-behind file.
    '''</remarks>
    Protected WithEvents TestTabContainer As Global.AjaxControlToolkit.TabContainer

    '''<summary>
    '''TestTabPanel control.
    '''</summary>
    '''<remarks>
    '''Auto-generated field.
    '''To modify move field declaration from designer file to code-behind file.
    '''</remarks>
    Protected WithEvents TestTabPanel As Global.AjaxControlToolkit.TabPanel

    '''<summary>
    '''TextBox1 control.
    '''</summary>
    '''<remarks>
    '''Auto-generated field.
    '''To modify move field declaration from designer file to code-behind file.
    '''</remarks>
    Protected WithEvents TextBox1 As Global.System.Web.UI.WebControls.TextBox
End Class
      You can indicate your satisfaction with how Microsoft handled this issue by completing this quick 3 question survey. [Details]

 

File Attachments
File Name Submitted By Submitted On File Size  
VS2008.zip (restricted) 2/16/2010 -
VS2010.zip (restricted) 2/16/2010 -
Sign in to post a comment.
Posted by Vs2010Dummy on 3/25/2010 at 4:34 PM
On march 24th windows update installed updates which RE BROKE THESE!, (must have covered up code
for HotFixes, ANYBODY ELSE NOTICE THIS?, The VS10-KB980920, and VS10-KB981167
worked from march 8th until march 25th !!
Posted by Microsoft on 3/5/2010 at 2:34 PM
A patch for this issue for Visual Studio 2010 RC is now available for download:
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=27117
Posted by Martin.Robins on 2/19/2010 at 12:21 PM
This issue is also as reported in bugs 532641, 533071, 534086 & 533302.
Posted by Joe Washington on 2/19/2010 at 12:18 AM
The problem only occurs when using a Web Application project. If a website project was used the error would not occur
Posted by Microsoft on 2/18/2010 at 11:29 AM
Thanks for the report. Many customers are running into the same issue with other controls. We are working on a fix for this problem for the final release. We are also considering releasing a patch for the RC build.
Posted by Jeremy Marie on 2/17/2010 at 9:52 AM
Similar issue that may be linked: https://connect.microsoft.com/VisualStudio/feedback/details/534086/editing-existing-aspx-regenerates-designer-cs-good-but-most-of-the-controls-are-now-missing-bad
Posted by Microsoft on 2/16/2010 at 7:03 PM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)
Posted by AaronDayalan on 2/16/2010 at 10:13 AM
note: this worked in VS 2010 beta, but now in 2010 RC it doesn't
Sign in to post a workaround.
Posted by diesel-pham89 on 4/21/2010 at 5:40 PM
A patch for this issue for Visual Studio 2010 RC is now available for download:
http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=27117