1- Create your database in SQL server.
2- Open up your ASP.NET website in which you'd like to use ASP.NET membership features.
//Library Used
using System.Web.Management;
//This is the Code which you have to put on a web site which you are working on or any else...put it on page load event.
System.Web.Management.SqlServices.Install("YOUR_SERVER", "YOUR_DATABASE", SqlFeatures.All);
asp.net
,
authentication
,
security
2- Open up your ASP.NET website in which you'd like to use ASP.NET membership features.
//Library Used
using System.Web.Management;
//This is the Code which you have to put on a web site which you are working on or any else...put it on page load event.
System.Web.Management.SqlServices.Install("YOUR_SERVER", "YOUR_DATABASE", SqlFeatures.All);
Note:
YOUR_SERVER - Means your SQL server name
YOUR_DATABASE- Means your Database in which you want to have this functionality
after execution please go to database and check it the table will be created.
No comments:
Post a Comment