Click here to Skip to main content
14,970,700 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
hi guys, i am new to membership, i dont kown very exactly it means.

i looked for lots of info and as i kown,i can type "aspnet_regsql.exe" in cmd.exe to create a database with tables(user,role etc). and then we can use custom store procedure
to make the login page, or create, delete user, all is done.
1st, i dont kown why we will still use WSAT(web site administration tool) to create role,user etc? just for testing?

2nd, i dont understand why in our web.config file, we use
<membership defaultProvider="AspNetSqlProvider">
          <add connectionStringName="connectionString"
               type="System.Web.Security.SqlMembershipProvider, System.Web, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

we have already all the tables after "aspnet_regsql.exe", so why this snippet of code?

does that mean, in our code, we cant use
until we do all these?

thanks for any help!
Updated 7-Jan-14 23:57pm

1 solution

Read below mentioned articles.After that You'll have answers for all of your questions.

Introduction to Membership

How to: Use the ASP.NET Membership Provider
v03051435 8-Jan-14 9:39am
thank you very much!!
Sampath Lokuge 9-Jan-14 0:57am
You're warmly welcome :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900