N
Nick Large
Hello Microsoft.
In a web config file, I intend to set a value in the appsettings as such:
<add key="ApplicationA"
value="[Application Name]:MyApp1||
[PropertyA]roertyValue||
... "
When I compile, it replaces the CRLF with
and pushes the whole text for the item onto a single line. I intend on having a moderately large value in here.
Before anyone asks why I need this it is because, instead of having multiple keys that essentially relate to the same object, I intend on creating one single key with multiple internal values in a preset structure that I can use as a standard format. I can include stuff like connection string information and the such. I have tried the standard method and it sucks. When you look at a web.config file that has information on a complex application it gets really difficult to read the values, knowing what goes with what. This way I can group all the information together in one string, which makes sense logically.
I want to know either how to stop the designer from reordering my value-text when I compile, or how do I concatenate values in the web config, like I would in a section of code, thus: mytext = oldtext & ',' & appendedtext.
Eg. can I use
<add key="ApplicationA"
value="[Application Name]:MyApp1||" +
"[PropertyA]roertyValue||" +
" ... "
Thanks in advance
In a web config file, I intend to set a value in the appsettings as such:
<add key="ApplicationA"
value="[Application Name]:MyApp1||
[PropertyA]roertyValue||
... "
When I compile, it replaces the CRLF with
and pushes the whole text for the item onto a single line. I intend on having a moderately large value in here.
Before anyone asks why I need this it is because, instead of having multiple keys that essentially relate to the same object, I intend on creating one single key with multiple internal values in a preset structure that I can use as a standard format. I can include stuff like connection string information and the such. I have tried the standard method and it sucks. When you look at a web.config file that has information on a complex application it gets really difficult to read the values, knowing what goes with what. This way I can group all the information together in one string, which makes sense logically.
I want to know either how to stop the designer from reordering my value-text when I compile, or how do I concatenate values in the web config, like I would in a section of code, thus: mytext = oldtext & ',' & appendedtext.
Eg. can I use
<add key="ApplicationA"
value="[Application Name]:MyApp1||" +
"[PropertyA]roertyValue||" +
" ... "
Thanks in advance