----- Original Message -----
From: "madhu c." <[EMAIL PROTECTED]>

Mike,
The class which I was writing was almost similar to the one which you
mentioned as
"[1] http://staff.develop.com/woodring/dotnet/#ConfigFileReader";. But I
have a  question for that class, how can I use that class for an ASP.NET
application's Web.config file? what is the path i need to give? or can I
give just "Web.config" as the argument. I may be wrong, in that case
please correct me...

[Mike Woodring replied]
ConfigFileReader cfgFile = new
ConfigFileReader(Server.MapPath("web.config"));
string someValue = cfgFile["someKey"];

-Mike
http://staff.develop.com/woodring
http://www.develop.com/devresources

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to