|
-
Mar 24th, 2007, 03:25 PM
#1
Thread Starter
Addicted Member
converting from vs2003 to vs2005
I just loaded visual studio 2005 on my new vista latop and after bringing over my asp.net projects, I tried to work with one of them and received numeruos errors. The one I can't figure out is the system.configuration.appsetting.get
It is giving me and error and I don't know the correct command to use.
Can anyone tell me what replaced this command?
I also noticed that my web pages will not display because I now have errors inthe html that I did not have before.
Anyhelp would be appreciated.
-
Mar 24th, 2007, 06:55 PM
#2
Re: converting from vs2003 to vs2005
There something, but not much, you can do about converting your 2003 projects to 2005. Make sure you create a backup copy of 2003 projects before opening them in 2005.
MSDN - Step-By-Step Guide to Converting Web Projects from Visual Studio .NET 2002/2003 to Visual Studio 2005
It should be System.Configuration.ConfigurationManager.AppSettings["name"];
If your Web.config file looks like this:
Code:
<configuration>
<appSettings>
<add key="appset" value="Hello Appsettings"/>
</appSettings>
<system.web>
----
</system.web>
</configuration>
Then you can access this value like:
Code:
myLabel.Text = System.Configuration.ConfigurationManager.AppSettings["appset"].ToString();
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|