Re: Passing the connection string from a web form to a business lo
- From: "Greg Burns" <bluebunny@xxxxxxxxxxxxxxxxx>
- Date: Wed, 9 Nov 2005 16:31:01 -0500
inline
"Juan T. Llibre" <nomailreplies@xxxxxxxxxxx> wrote in message
news:u0pU0HX5FHA.2552@xxxxxxxxxxxxxxxxxxxxxxx
> re:
>> ConfigurationSettings.AppSettings was obsolete and should be avoided in
>> favor of the new ConfigurationManager.AppSettings
>
> It is *deprecated*, not obsolete.
The warning VS gives is "obsolete".
> You can *still* read web.config values with
> ConfigurationSettings.AppSettings.
>
> At some point in the future, though, it will stop working. (.Net Framework
> 3.0 ?)
>
> re:
>> Sounds like you are saying you should ingore the warnings and continue to
>> use ConfigurationSettings.AppSettings for reading from web.config and
>> app.config files.
>
> Like I said, app.config is for Windows Forms,
> and web.config is for web applications.
Yes, of course.
> He said he was using app.config, but this is a web applications newsgroup.
>
> If he is getting warnings when he uses app.config in a web application,
> then he should, simply, only use app.config for Windows applications,
> and use web.config for web applications.
You get the warning in both Windows apps and Web apps when you use
ConfigurationSettings.AppSettings
Greg
.
- References:
- Re: Passing the connection string from a web form to a business lo
- From: Juan T. Llibre
- Re: Passing the connection string from a web form to a business lo
- From: Juan T. Llibre
- Re: Passing the connection string from a web form to a business lo
- Prev by Date: Treeview tweak
- Next by Date: Re: Primo test
- Previous by thread: Re: Passing the connection string from a web form to a business lo
- Next by thread: Re: Passing the connection string from a web form to a business lo
- Index(es):
Relevant Pages
|