Security :: Programmatically Create User Using TheSqlMembershipProvider

Sep 26, 2010

i'm programitcally creating user using theSqlMembershipProvider. I am able to create users however now I want to be to assign them to a certain role once they are created. How do I go about assigning the newly created user to a role?

CODE to create user, works fine:

[Code]....

View 8 Replies


Similar Messages:

Web Forms :: Programmatically Create User Folders?

Apr 20, 2010

I have an asp.net app that allows users to create personal pages which can be publicly accessed thru a "directory" page. The content of the pages is stored in sql server, so a given user's page is dynamically created thru the code that executes when the relevant link on the directory page is clicked.

I would like to take this a step further by allowing access to a given user's page directly thru the browser's address bar, something likewww.thegreatestsite.com/jim (pretty much like You Tube, Facebook, etc.).

I could achieve this by manually creating a folder under the root, called "jim" and put a default.aspx page in it which has the code in it's load event that would dynamically create jim's page.

However, I would like this "additional feature" to be created automatically, as part of the sign up process of the user.

I have no clue as to what would be the best approach. For all I know there might even be a standardized way to ado this in asp.net?

View 4 Replies

Javascript - Create Web App Shortcut On User's Desktop Programmatically?

Jan 27, 2011

For enterprise intranet web application, is there any way to create a desktop shortcut of web application on user's desktop? I'm looking for functionality similar to Google Gears, but without installing Google Gears. I'm looking to give user's a link on web application that says "Click here to install desktop shortcut", when they click on it, a desktop shortcut is installed with the custom icon for our application. Is there a way to do it using javascript or any other client side technologies? I don't want to run any exe on user's machines. Even though it's intranet, I have to jump through lot of corporate hoops, compliance approvals, etc to run exe on their machine. We are trying to avoid that, due to time constraints. User machines are windows XP with IE6 installed. They may all upgrade within next year's time to Windows 7 with IE8. Intranet web application in question is developed using asp.net 3.5, c#.

View 3 Replies

Security :: Create A Login Control Programmatically For Sql Server 2005?

Feb 6, 2010

implementing login control programmatically using sql server 2005. can anyone give me good web reference about the topic? i am new to this development.

development tool i am using:

>visual studio 2008
> sql server management studio 2005
>windows 7 ultimate(32 bit)

View 2 Replies

Security :: How To Programmatically Remove User Accounts

Feb 10, 2011

I am trying to remove a user account (I am using the default authentication system), but I can't find a class/method which does this. Is there a way to do this?

View 3 Replies

Security :: Changing User's Role Programmatically?

Jan 23, 2010

I am using the ASP.NET membership system and I have found the ability to 'add user to role' programtically, but I am wondering if there is a way of changing a user role?

I don't simply want to add a user to another role and I can't seem to find the 'remove user from role' command.

View 2 Replies

Security :: Programmatically Creating User Instance When Servers Are Different

Jan 7, 2011

I need to create .net membership user instance for a database living in a different server than the one I'm coding in. What is the best way to do this?Should I do it though Sql Server stored procedure? or should I use a separate provider (therefore having 2) in my web.config?

I need to create this user without using the "create user wizard".

View 8 Replies

Security :: How To Create User Button In Create User Wizard

Aug 31, 2010

May i know how i can change postion of Create user button in Create USer Wizard as i want to change according to requirement!

View 4 Replies

Security :: Trying To Create New User With Create User Wizard And Getting Name Already Exists!?

Sep 8, 2010

I am using a create User Wizard for registering a user and have converted it to a a template to capture additional information. In the CreatedUserEvent handler in Code Behind I am getting the UserName of the new user and their unique GUID key. This is then added to a seperate data table with addditional info captured from the user. The textboxes within the create user Wizard have validation controls. If the user has missed an entry these fire and it shops the process of creating the user.

BUT If I then complete the textboxes and then click submit it says the USER NAME already Exists! This is not what I want as the User just needs to correct the errors in the form and they should be able to keep their iniital User Name choice. Do I need to change the Event handler and if so am I still able to capture the USerName and Key so that I can add the data to the other non membership table.

View 2 Replies

Security :: How To Create User Profile In Multi Step "create User Wizard"

Jun 9, 2010

im creating a multi step create user wizard for new members but I run into a problem. If the create of an account is in step 3 how do I capture the values from step 1 and 2. Should I try to pass the values to sessions or is there some other code. Here is some codebehind I tried so far (did not work).

[Code]....

[Code]....

View 1 Replies

Security :: VS - Where To Create User Wizard Save User And Pass And Info

Sep 7, 2010

I Have Question : Can I Edit Create User Wizard To Save Info To My Project Sql ? And Where Normal Create User Wizard Save Info Of Register?

View 5 Replies

Security :: Dynamically Create Membership User And Check If User Name Is Valid Or Used?

Jul 25, 2010

I am createing user dynamially with the below code; string MyPassword = Membership.GeneratePassword(8,0).ToString(); Membership.CreateUser(TextBox7.Text, MyPassword, TextBox8.Text); but before I start creating, I would like to check if the user name is used before or not.

View 2 Replies

Security :: How To Create User Account Belong To Normal User Automatically

Mar 25, 2010

I facing a problem here. how can I make the create user wizard category all the new user become normal user role? I have created 2 role which is Manager and Normal User. Normal User can't view the Manager page. But after i create a new user account, i can view manager and normal user page. I want to make all the new member registration will be normal user role?

View 6 Replies

Security :: Create User Control To Make A New User?

Jun 5, 2010

I used the Create User Control to make a new user.

Is there a similar tool (I did not see one) that allows the user to edit their own profile?

If not what is the best way to do it? I have created user tables in AWAT.

View 5 Replies

Security :: Create An User Via Sql?

Dec 22, 2010

im writing a stored procedure which call the procedure "aspnet_Membership_CreateUser".

To store users in the aspnet-table structure i have to generate a password salt and create a hash from password+password salt. Unfortunatly my createt user can't login.

The generated password and password salt are not matching the membershipprovider.

The machinekey in the web.config has SHA1 as validation. But i used SHA1 to hash the password....

Does anybody know which algorithm is used by the membershipprovider to generate passwords?

View 4 Replies

Security :: How To Create Anonymous User

Dec 4, 2010

is there any method in .net framework to create a anonymouse user programaticly or i have to write a method?

View 6 Replies

Security :: Create User In Codebehind?

Feb 21, 2010

how can I create a user in codebehind instead of using a webform and a CreateuserWizard?

View 2 Replies

Security :: Create User With File Upload?

May 18, 2010

I am trying to create a new user that includes a file upload. I want to write the file name to the database in a table called MemberInfo.

Here is my button code:

[Code]....

View 1 Replies

Security :: Create User With Additional Data?

Apr 8, 2010

When we use CreateUserWizard, how can we most simply create a user with additional data like department id, location id, and preference mix(multiple checkboxes)?

View 3 Replies

Security :: Using Membership Provider To Create New User?

Aug 31, 2010

i am using membership provider to create new user.

View 2 Replies

Security :: Create User Wizard With Roles?

Dec 31, 2010

I'm trying to add a step into a Create User Wizard to set roles, but it don't works, it create the user but don't set the role,

[Code]....

using System;

View 1 Replies

Security :: How To Create User Form/ Configuration Utility

Apr 29, 2010

i have designed a website in my desktop and used WAT of visual studio 2008 from Website menu and then selecting ASp.Net configuration.

Now i have copied my website to a server in my local network, server name=isaserver.

i try to access WAT utility of my website at isaserver. when i change webconfig file to correct data source, utility is working but

if i create a user using my website's create user form, then that user appears in aspnetdb database of isaserver but i am not able to see that user using WAT utility.

if i create a user using WAT utility then i am not able to login into my website hosted at isaserver using that username.

no matter how i create a user, either through my website's create user form or through WAT which is mapped to isaserver, both the users will appear in aspnetdb database of isaserver.

View 7 Replies

Security :: How To Create User Account For Big Group Of People

Aug 25, 2010

I need to create individual account for a big group of people (around 200) from an Excel spreadsheet. What is the best practice? It will take too much time to create account using web form. I think there must be a way to do it. I tried to use Stored procedures created by ASP.NET.

View 2 Replies

Security :: Authentication And Authorization Create User Control

Jan 27, 2011

I am using asp.net authentication and authorization with form authentication for my web application.

When I create a new user using asp.net create user control,the newly create user automatically gets logged in,the already logged users looses his session.

Don't know why this is happening.Is there some setting for this?

View 1 Replies

Security :: Create User - Membership Provider Class?

May 14, 2010

It's new to me to use the membership provider class.I was able to inherits the MembershipProvider in my library(HDIMembershipProvider.vb) and a lot of functions are generated. When I created the form to create a user like this:

[Code]....

Once the user clicks submit, how this function can be called ?

[Code]....

Each time I submit, the function is never called.

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved