Last post Mar 05, 2006 08:25 AM by ScottGu
Mar 03, 2006 07:54 PM|chipsw|LINK
Then why does VS 2005 add that syntax into every new page I create? And then flag it as an error?
Mar 03, 2006 10:04 PM|StrongTypes|LINK
The CodeBehind attribute is no longer supported in Visual Studio 2005. Code-behind was replaced with code-beside. Take a look at this article:
ASP.NET V2.0: Code-Beside Replaces Code-Behind. Visual Studio 2005 shouldn't be adding the codebehind atribute. Create a new
web page and post what VS generates for the web forms Page directive.
Mar 05, 2006 08:25 AM|ScottGu|LINK
I suspect you are seeing that warning because you are using the VS 2005 Web Application Project preview. If so, you can safely ignore the warning -- it is there in the current preview build, but will go away with the refreshed build later this month.
Hope this helps,