Master Content Page and Studio 2003 errors
-
I have VS.NET 2003 installed on my computer. I downloaded the .NET 2.0 redistribution. I have designed a very basic Master-Content set of web pages but I'm unable to load any of the content pages. Basically when I compile the content pages the browser doesn't understand the 2.0 attributes like masterpagefile. Code: <%@ page language="C#" masterpagefile="WebForm1.master" %> Parser Error Message: The 'masterpagefile' attribute is not supported by the 'page' directive. My VS.NET 2003 Help --> About box the current framework is 1.1. Although I did install 2.0 , VS.NET 2003 doesn't grab it. How do I change to 2.0 in VS.NET 2003 or do I need to buy VS.NET 2005. Also is there a command line compiler for compiling the master-content pages? Thanks ---------- user9 A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
-
I have VS.NET 2003 installed on my computer. I downloaded the .NET 2.0 redistribution. I have designed a very basic Master-Content set of web pages but I'm unable to load any of the content pages. Basically when I compile the content pages the browser doesn't understand the 2.0 attributes like masterpagefile. Code: <%@ page language="C#" masterpagefile="WebForm1.master" %> Parser Error Message: The 'masterpagefile' attribute is not supported by the 'page' directive. My VS.NET 2003 Help --> About box the current framework is 1.1. Although I did install 2.0 , VS.NET 2003 doesn't grab it. How do I change to 2.0 in VS.NET 2003 or do I need to buy VS.NET 2005. Also is there a command line compiler for compiling the master-content pages? Thanks ---------- user9 A student knows little about a lot. A professor knows a lot about little. I know everything about nothing.
VS 2003 builds for .NET 1.1 . It uses the .NET 1.1 (or 1.0) compiler, so could you write in .NET 2.0 won't be compiled. You will indeed need to use VS 2005 for all your .NET 2.0 stuff. And I believe that if the syntax is right you can just run it on IIS and IIS will JIT compilation of all your files. That is a new thing in 2.0, that you don't have to do pre compilation of your code behind files (which actually don't really exist in 2.0) For 2.0 compilers: if you installed .NET 2.0, you should have all the compilers in the .NET directory:
C:\windows\Microsoft.NET\Framework\v2.0.40607
The minor version might be different on your system, so just check under theFramework
directory for the right directory. Gidon