How can i access the folder path from web.config using c# code.
here is a sample code.
how to place this path in web config C:\\whatever\\Data\\sample.xml
i have to read this path from web config.
string folderpath = ConfigurationSettings.AppSettings["path"].ToString();
using (XmlWriter xw = XmlWriter.Create(folderpath, new XmlWriterSettings { Indent = false }))
please help…..
Here is some sample code that should help you
This goes into your web.config.
And this is how you read it: