Advertisement

03.01.2008 at 06:14AM PST, ID: 23206123
[x]
Attachment Details

How do I create this custom config section??

Asked by bemara57 in C# Programming Language, Programming for ASP.NET, .NET Framework 2.0

I have a custom config section that has a collection, but it's not just a key/value pair, it has 3 items per slot. This is what the custom section looks like:

<customSection>
    <membership
        connectionStringName="AccessMembership">
        <dataMap app="userID" database="UserId" dbType="OleDbType.SmallInt" />
        <dataMap app="email" database="Email" dbType="OleDbType.VarChar" />
        <dataMap app="password" database="[Password]" dbType="OleDbType.VarChar" />
    </membership>
</customSection>

All examples I can find are using NameCollectionValues, but that won't work in this case. How do I build a code that can wrap itself around this in C#??Start Free Trial
[+][-]03.01.2008 at 07:39AM PST, ID: 21022046

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: C# Programming Language, Programming for ASP.NET, .NET Framework 2.0
Sign Up Now!
Solution Provided By: sachintana
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628