Migrating web Application to .Net 2005
-
Hi All, I'm migrating a web application from .net 2003 to .net 2005. I need to know what I have to change manually in each page before I make the conversion because when I use the conversion wizard,many errors are generated. Thanks so so much
-
Hi All, I'm migrating a web application from .net 2003 to .net 2005. I need to know what I have to change manually in each page before I make the conversion because when I use the conversion wizard,many errors are generated. Thanks so so much
Mainly three things: 1. In the Markup replace "CodeBehind" with "CodeFile" int the Page directive 2. In the code file add the modifier "partial" to the class 3. Remove the control declarations in the code file. For example if you have <asp:Literal ID="Literal1" runat="server" /> in the markup, you don't need code like Literal Literal1 = new Literal() in the cs file. Also there could be a lot of code-specific changes you might need to do, sometimes just warning messages. To give an example, you should replace Page.RegisterStartupScript with Page.ClientScript.RegisterStartupScript. The best you can do, is examine these errors one be one and possibly resolve them with replace.
-
Mainly three things: 1. In the Markup replace "CodeBehind" with "CodeFile" int the Page directive 2. In the code file add the modifier "partial" to the class 3. Remove the control declarations in the code file. For example if you have <asp:Literal ID="Literal1" runat="server" /> in the markup, you don't need code like Literal Literal1 = new Literal() in the cs file. Also there could be a lot of code-specific changes you might need to do, sometimes just warning messages. To give an example, you should replace Page.RegisterStartupScript with Page.ClientScript.RegisterStartupScript. The best you can do, is examine these errors one be one and possibly resolve them with replace.
Thanks a lot :)