Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Difficulty in changing the Connection Server control path changing ... (http://www.velocityreviews.com/forums/t67632-difficulty-in-changing-the-connection-server-control-path-changing.html)

Samridhi Kumar Shukla 11-26-2003 03:03 PM

Difficulty in changing the Connection Server control path changing ...
 
I am facing technical difficulti in using server connection control because
we cannot change the path once fixed ..
one way is to edit the code of the form generated code but though it allow
to manipulate but again when i open the project one day latter the
connection string
cn.connection string goes away i have again write this code. is there any
way out for this




Alvin Bruney 11-30-2003 02:31 AM

Re: Difficulty in changing the Connection Server control path changing ...
 
why don't you store the connection string in the web config file, then just
read the config file for the string using appsettings.config("stringname") i
believe is the syntax or something close to that. This is the preferred
method where security is not an issue so that changing connection string
information can be done in real time without rebuilding the application each
time.

--
Regards,
Alvin Bruney
Got Tidbits? Get it here
www.networkip.net/tidbits
"Samridhi Kumar Shukla" <sshukla@mrinfosys.com> wrote in message
news:%23Hido7CtDHA.1996@TK2MSFTNGP09.phx.gbl...
> I am facing technical difficulti in using server connection control

because
> we cannot change the path once fixed ..
> one way is to edit the code of the form generated code but though it allow
> to manipulate but again when i open the project one day latter the
> connection string
> cn.connection string goes away i have again write this code. is there any
> way out for this
>
>
>





All times are GMT. The time now is 01:57 PM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.