I am using MS visual web developer and i get a lot of things but onething i do not get is why is it when i set up the web.config to a database i made on my own and run the website and create an account itcreates a new data base and creates that new account in that newdatabase, i've never opened the web admin tools.
<connectionString>
<add name="LoginConnection" connectionString="DataSource=.\SQLEXPRESS;AttachDbFilename="C:Visual Studio2005\WebSites\WebSite1\App_Data\YourEstate.mdf;IntegratedSecurity=True;Connect Timeout=30;User Instance=True"
providerName="System.Data.SqlClient" />
</connectionStrings>
.NET uses a set of base classes called the "Membership Provider" to perform is membership functions. the ASP.NET configuration tool is just an extension of the bigger picture. Creating your own database tells .NET nothing of being able to use your database as it's membership / profile provider. You'll need to take a few extra steps to accomplish this. Please see this article.
http://aspnet.4guysfromrolla.com/articles/120705-1.aspx
No comments:
Post a Comment