Re: best technique for connection strings in web.config in ASP.NET
- From: kfrost <kris@xxxxxxxxx(donotspam)>
- Date: Thu, 15 Dec 2005 17:44:02 -0800
Hey Brian,
You should look at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnpag2/html/paght000005.asp
If this is your server I would suggest looking into how to use RSA or DPAPI
to encrypt the info.
--
kris@xxxxxxxxx<Remove This Before Emailing>
Network & Software Integration
www.n-sv.com
"Helping put the pieces of your IT puzzle together"
"Brian Henry" wrote:
> that is exactly what i converted my existing ones to
>
> "Kevin Spencer" <kevin@xxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:%235U37K64FHA.2676@xxxxxxxxxxxxxxxxxxxxxxx
> > Considering the more strict schema of configuration files in the .Net 2.0
> > framwork, you may find the CollectionStrings element to be your best bet.
> >
> > --
> > HTH,
> >
> > Kevin Spencer
> > Microsoft MVP
> > .Net Developer
> > A watched clock never boils.
> >
> > "Brian Henry" <nospam@xxxxxxxxxx> wrote in message
> > news:ODrMP554FHA.3192@xxxxxxxxxxxxxxxxxxxxxxx
> >> thanks everyone! I knew something changed in 2.0 but wasnt sure, the info
> >> given helps a lot
> >>
> >> "Scott Allen" <scott@xxxxxxxxxxxxxxxxxxxx> wrote in message
> >> news:p3htm1psfn2bk7phafk74hsjqi06find7a@xxxxxxxxxx
> >>>I have a related article that talks about some of the new config
> >>> features in 2.0. http://odetocode.com/Articles/418.aspx
> >>>
> >>> As others pointed out, the biggest difference is a dedicated
> >>> <connectionStrings> section and the WebConfigurationManager class.
> >>>
> >>> --
> >>> Scott
> >>> http://www.OdeToCode.com/blogs/scott/
> >>>
> >>> On Sun, 6 Nov 2005 16:31:54 -0500, "Brian Henry" <nospam@xxxxxxxxxx>
> >>> wrote:
> >>>
> >>>>I've never stored a program specific connection string in the web.config
> >>>>file before, is there any information on how to store it there and
> >>>>access it
> >>>>from the app and what would be the best way to handle a string like this
> >>>>in
> >>>>asp.net 2.0? thanks!
> >>>>
> >>>
> >>
> >>
> >
> >
>
>
>
.
- Prev by Date: Re: dataset question - to preserve DB resources
- Next by Date: Re: Convert Word to HTML in ASP.NET 1.1
- Previous by thread: Wierdness with "Imports" statement
- Next by thread: Re: Convert Word to HTML in ASP.NET 1.1
- Index(es):
Relevant Pages
|