Can I store custom XML in web.config ? I want to store an XML dom (to store some of my site settings) in my web.config, so the application can read that xml dom and show that value in my page.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes you can. You will need to implement a custom
ConfigurationSection, a customConfigurationElementCollection, and a customConfigurationElement.A nice example is provided on MSDN: http://msdn.microsoft.com/en-us/library/2tw134k3.aspx