asp.net 2.0 web.config configSections question, How can I create with correct type?
Posted on 2009-04-09
I am working on our website, and I am integrating a newCart app into the main app.
the newCart is located in a virtual directory and it is a shopping system we purchased.
I have create the reference that I need to pass the user information into the newCart. But I come to a problem.
IN my web.config I think I need to create a custom tag in the configSections like
<section name = "newCart" type="xxx" />
<add key="connString" value=" data source=..... " />
From what I searched, the type xxx should be a class implement the ConfigurationSection.
I searched the newCart codes and did not have anything implement this ConfigurationSection, how can I deal with this? My goal is to let the referenced class connect with the correction string to DB.
Appreciate any help.