Last post Mar 05, 2006 01:25 PM by ScottGu
Mar 04, 2006 12:54 AM|chipsw|LINK
Then why does VS 2005 add that syntax into every new page I create? And then flag it as an error?
Mar 04, 2006 03:04 AM|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 01:25 PM|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,