Article ID: 316370 - Last Review: February 23, 2007 - Revision: 4.6 BUG: Visual Studio .NET does not generate a code-behind declaration for Web User controlsThis article was previously published under Q316370 On This PageSYMPTOMS When you create a Web User control and drag it to an .aspx page, Visual Studio .NET does not
automatically generate a code-behind declaration for the Web User control. RESOLUTION To resolve this problem, manually enter the declaration for
the Web User control in the code-behind file. The following two code examples
show a Web Form (WebForm1) with an embedded Button control. You can add the declaration for the Web User control in the same place that Visual Studio .NET adds the
declaration for the Button control. Microsoft Visual C# .NET exampleMicrosoft Visual Basic .NET exampleSTATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONSteps to reproduce the problem
APPLIES TO
| Article Translations
|

Back to the top
