This is probably more of an ASP.NET group question than a C# language group
one.
You might be better off just storing two separate connectionStrings section
items. Then whichever button is clicked you could store the selected
connectionString in a Session item. The reason I say this is because if you
modify the web.config file while your ASP.NET app is being used, its going to
restart. That would blow away all your Session, Application and Cache items.
-- Peter
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Short Urls & more:
http://ittyurl.net
"rodchar" wrote:
hey all,
can someone please tell me if this is possible and what the best way of
doing it is; on my aspx page i'd like to have 2 buttons and depending on
which one was clicked i'd like to go and modify the web config file for the
app and change the initial catalog appropriately.
is this possible and what would be the best way?
thanks,
rodchar