Hi, I am aware off <APPSettings>, where you can define Key and Value....
However I would like to be able to have my own section in web.config, called <InputFiles>. Here would be an example:
<InputFiles>
<add name="myfile1.txt"
Regex="__(\S)"
/>
<add name="myfile2.txt"
Regex="(__\S)"
/>
</InputFiles>
1) Is it possible to use my own custom section like this with different attributes? Where would I place it in web.config?
2) How would I read it in my C# application? The number of files (myfilex.txt) can be unlimited...
Please help. Thanks
However I would like to be able to have my own section in web.config, called <InputFiles>. Here would be an example:
<InputFiles>
<add name="myfile1.txt"
Regex="__(\S)"
/>
<add name="myfile2.txt"
Regex="(__\S)"
/>
</InputFiles>
1) Is it possible to use my own custom section like this with different attributes? Where would I place it in web.config?
2) How would I read it in my C# application? The number of files (myfilex.txt) can be unlimited...
Please help. Thanks