C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

Create user programmatically in asp.net MVC help


Posted Date: 17 Oct 2008      Posted By: Ambika      Member Level: Gold     Points: 1   Responses: 1



Hi,

I need help on create user programmatically in asp.net MVC
I have used table profile provider for my project in that i have to create the user programmatically. Is anybody has the sample to create the user programmatically?
It should contain sqlprofileprovider.cs
sqlstoredprocedureprofileprovider.cs and sqlhelper.cs

Regards,
Ambika





Responses

Author: gomathinayagam    17 Oct 2008Member Level: GoldRating:     Points: -20

The ASP.NET profile is used to store and retrieve user settings in a data source such as a database. The user profile is accessed using the Profile property of the current HttpContext. Profile information and property values are managed using a profile provider.

The SqlProfileProvider class is used by ASP.NET to store and retrieve profile settings for an ASP.NET application that is using a SQL Server database. To use a SqlProfileProvider, you must first create the SQL Server database used by the SqlProfileProvider. To create the database used by the SqlProfileProvider, run the aspnet_regsql.exe tool, which is found in the [drive:]\WINDOWS\Microsoft.NET\Framework\versionNumber folder, and specify the -Ap option. The following command demonstrates how you might use the aspnet_regsql.exe executable:

aspnet_regsql.exe -Ap



refer : http://msdn.microsoft.com/en-us/library/system.web.profile.sqlprofileprovider.aspx


or u need more details soultion with example here some codeproject link. the author inherit the sqlprofileprovider and make his own mysql profile provider. go through it :

http://www.codeproject.com/KB/database/mysqlmembershipprovider.aspx

Gomathi Nayagam

Please Rate my answer if it has helpful to you



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : disable title bar in child window
Previous : re:save edit ,update...
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use