Oops, sorry about that :-(
Since web.config file is nothing but a valid XML file, use System.Xml types
to manipulate the sections. An example could be found here:
http://www.abstractvb.com/code.asp?A=1093
Hope this is what you are lookin for.
"Jay" <j@h.com> wrote in message news:IuyKc.21369$9I.7123@okepread02...
I guess what I am asking: is it possible to dynamically change the
web.config file depending on the which server it resides on or is the
web.config static?
"Shiva" <sh******@online.excite.com> wrote in message
news:eP*************@TK2MSFTNGP11.phx.gbl...
Hi,
You can use Request.PhysicalApplicationPath and append with 'bin' to get
the physical path to the app bin folder instead of hardcoding the path in the
config file.
HTH.
"Jay" <j@h.com> wrote in message news:3YcKc.17317$9I.7513@okepread02...
How do you say Server.MapPath in the web config file .NET. I am trying to
put an entry in the web config file which points to the current bin
directory where my database resides.
Thank You for any help with this!