A doubt

Hi everyone,

I have a login page.when user enters data it has to be validated from an xml file instead of using any database.For that I have used a custom Xmlmembershipproviderclass in my application.
In my webcongif file I added the following:

<membership defaultProvider="XmlMembershipProvider">
<providers>
<add xmlFileName="~/App_Data/Userlogin.xml" description="XML membership provider" name="XmlMembershipProvider" type="XmlMembershipProvider"/>
</providers>
</membership>

When i try to get the path (xmlFileName) in my membershipprovider class ,Im not getting the path.This is the code i used for getting the XmlFileName.

NameValueCollection config = new NameValueCollection();

string path = config["xmlFileName"];

But Im getting path as null .
[889 byte] By [MathewJose] at [2007-11-20 8:54:27]
# 1 Re: A doubt
I believe that you will need to access the membershipproviders collection in order to get the object representing that entry in the config file.

See the System.Configuration namespace which contains the types that provide the programming model for handling configuration data.

http://msdn2.microsoft.com/en-us/library/system.configuration.aspx
wmain at 2007-11-9 11:53:25 >