The ASP.NET membership adds an application to your ASP.NET website so that you may be able to manage your user accounts well. It does this by adding some tables in your existing sql database. Try incorporating this into your website and you'll see the magic.

First off, you need to run your aspnet_regsql.exe, instructions to do that are found here:
Find and install aspnet_regsql.exe

Encountering problems there? Can't install aspnet_regsql.exe on a remote server? Here's a step-by-step instruction you can follow:
1. create a blank database in your local server or any server other than the remote server
2. in the blank database, install the aspnet_regsql.exe
3. when finished installing, open the properties of the database
4. make it "generate scripts", save it in a .sql file
5. log on to the database in the remote server
6. choose the database and open the .sql file in the query
7. run the scripts
8. voila! The necessary tables are now inside the database! :D

Then, there's this code you would need to inject into your web.config file:
Just have to copy the code and paste it on the right place

Now, follow these steps:
1. Go to your Solution Explorer
2. Click on the ASP.NET Configuration (this will open your web admin tool on the default browser)
3. In the web admin tool, click on the Provider tab
4. Follow the steps in the installation wizard and you're good to go! :D

Do you find it annoying to have yourself write a password with a minimum length of 7 with a non-alphanumeric character?
Then this would be the perfect solution

If you encounter some error while following the instructions above, you're gonna need to do this:

<roleManager enabled='true' defaultProvider='CustomizedProvider'>
<clear />
<add name='CustomizedProvider' type='System.Web.Security.SqlRoleProvider' connectionStringName='adminConnectionString' applicationName='test_aspajax' />
<authentication mode='Forms' />
<allow users='?' />
<membership defaultProvider='CustomizedProvider' userIsOnlineTimeWindow='15'>
<clear />
<add name='CustomizedProvider' type='System.Web.Security.SqlMembershipProvider' connectionStringName='adminConnectionString' applicationName='test_aspajax' minRequiredPasswordLength='5' minRequiredNonalphanumericCharacters='0' />

Here's the reference for that code:
The code is found near the bottom of the page

Here are the server scripts and codes you would need to utilize the membership:
The magical procedures and commands

Leave a Reply.