Security :: Auto User-profile Creator And Username Validation?

Apr 10, 2010

I'm trying to add two features to my website using the microsoft built-in login features. One feature I want to change is the validation of the username. By default, it allows pretty much any characters for the username. However, I want to make it so that only alphanumeric characters, and spaces. Also, I want to make it so that usernames MUST begin with a letter. I'm not entirely sure how to do this, In addition, I want to configure it so that once an account is created, a file /users/(their username)/(their username).aspx created once they are authenticated, with the master page set to userProfileMaster.master

View 5 Replies


Similar Messages:

Security :: Creating A Profile For A New User Is Updating Other Profile

Feb 4, 2010

I am logged in as user1, and while creating a user in which I have additional information which would store first and last name into the profile database. I have the following code

[Code]....

But because I just have profile like that, it is updating the profile of user1 not the new user i just created

[Code]....

View 5 Replies

Security :: Creating A Validateuser (username) Function - Validation Without A Password?

Mar 22, 2010

I have an application with a custom mebership (I'm still working on it). There is some funcionality in the application for asociating users. This means that (if already associated) one user could switch to some other user with just a click.

My question is:

Can I do a function that would allow me to authenticate one user without sending the password as a parameter?

View 1 Replies

Security :: Profile Not Saving Against User?

Nov 1, 2010

I have a website that acts as a common user details site for a few other websites. I pass a sersname to it and it gets the profile using

[Code]....

that part works fine. Now to commit the changes I use the above code to get the profilecommon for the user and then use oProfile.Save() to finish. This saves all the user data to my profile..doesn't matter which profile I use, it always gets saved to mine.

View 4 Replies

Security :: Is There An UpdateUserWizard Somewhere For Updating User Profile

Apr 14, 2010

There is a CreateUserWizard. Is there an UpdateUserWizard somewhere for updating user profile? Please advise or direct to sample link.

View 1 Replies

Security :: How To Control A User So That He Can Only Change His Own Profile

Sep 29, 2010

I am new to asp.net. I am designing a page to let the user to edit and update his own profile. How can I control a user so that he can only change his own profile?

View 1 Replies

Security :: Default Profile When User Is Created?

Oct 10, 2010

How do i set the default profile when a user logs in. I have an application where the users (once they are authenticated) are in either the logged in, premium, or promotion profile. right now it assigns none. How do i make every user automatically be part of the promotion profile.

View 2 Replies

Security :: Missing The 'user Profile' Option?

Jul 22, 2010

I started using the .NET user roles authentication for my new project, but somehow I can't manage to get the profilemanager to be recognised within my website.

I already go a working authentication with userlogins & roles, but the profilemanager won't show up :( I tried adding the <profiles enabled="true"> and all the other things according to this blog:
http://www.codeproject.com/KB/aspnet/Files.aspx, but i won't see the option in my WSAT provider config... What am I doing wrong? or am I missing something?

piece of my web.config:

[Code]....

View 2 Replies

Security :: Set User IsAnonymous To False In Profile?

Mar 23, 2010

i trying to include a name property which is save in aspnet_Profile when registering user with aspnet_Membership

I try to assign a name to the newly registered user but at first it pop outa ProviderException saying "This property cannot be set for anonymous users."

Then i try to set the IsAnonymous to False in the code, but it say the property is ReadOnly

How do i fix this problem? Or is there any better way to do this?

Below is my code.

[Code]....

View 1 Replies

Security :: Edit A User Profile Once It Has Already Been Created?

Jun 17, 2010

I know this sounds simple, but I can't find the answer anywhere. How do I edit a user profile once it has already been created?

View 2 Replies

Security :: How To Get A User Profile Without Setting The Last Activity Date

Apr 9, 2010

i have an administrators page that gets a list of the users that are members of my site and i want to display their profile each time i clikc on the user name.

In order to do so, i use the following code:

[Code]....

This way, the last activity date is updated and the IsUserLogedOn property is set to true, without the user actually enter the application (since it is a calculated value that depends on the last activity date). As a result, each time i click a user name to view his profile, the user seems to be loged in.

View 2 Replies

Security :: Want To Be Able To Allow A User To Edit Their Profile In A Details For Or Other Control?

Jun 6, 2010

I wan to be able to allow a user to edit their profile in a details for or other controlLooking at the ASPNETDB tables is is not clear to me how to do this.

View 3 Replies

Security :: Delete A Property Of The Logged In User In Profile?

Feb 12, 2010

I need to delete the user email once user is loged in and clics Delete Email/ Address/ Tel. I store user information in profile.common

[Code]....

this gets me the current user, next i need to delete this users email/ phone.

View 1 Replies

Security :: Retrieve User Profile For Any Site Member?

Sep 26, 2010

I am new to asp.net's membership controls. I am trying to figure out how to make a public profile page that will display information about a site member to other users. I thought I would be able to use the profile class and just pass in a parameter such as user name. But I tried:

Profile.GetProfile("username")
'Where username = name of profile I want to retrieve
Response.Write(Profile.Title)
Response.Write(Profile.Company)

However, if the user is logged in this codee just brings back their details, not those of the username requested. What am I doing wrong?

View 4 Replies

Security :: When The User Logs In Then They Are Able To View Their 'profile' Such As Their Name, Address Etc?

Jan 13, 2010

I've been trying to work out this error for a while now and i still dont understand it because i have been following a tutorial online step-by-step but i recieve this error when i log in ?

What i am trying to acheive is when the user logs in then they are able to view their 'profile' such as their name, address etc. The login is validated against a table in a database, ...this is the error i am recieving:

Description: An unhandled exception occurred during the execution of the current web request. review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

Source Error:

[Code]....

View 3 Replies

Security :: Delete User By Id Instead By Username

Apr 6, 2010

In my Aspnet_Users table I have 2 user with same UserName. Membership.DeleteUser method only can delete user by username. How can I delete user by userid?

View 3 Replies

Security :: Changing Aspnetdb To Store User Profile Information?

Feb 19, 2010

I need to know how to change aspnetdb to store profile information unique to each user so that I can restrict records in an sql table to only show that user's records.

So if I make a "companyID" int, identity column where would I put it?

Also, when I write the where clause to companyID = profile (companyID) would that work?

View 1 Replies

Security :: Getting The IP Address Of Each Time The User Has Logged In And Save It In Profile?

Oct 27, 2010

I have profile variable called IP Address ,

i need this Profile to add Unique IP address that has been used by the UserName ,,,

meaning :

If i logged in for the first time , it will save my IP address , next time if my IP has changed and i logged in , i need to keep the old IP address and add to it with comma seperated the new IP ..

View 1 Replies

Security :: Any Asp_net Function For Accessing Profile Properties Of A User?

Dec 17, 2010

I am using my aspnet membership for storing user profile related information in the database and I am looking for a way to access that information out of database from a function like Member.GetProfile. I am just wondering of any of the membership classes give thet functionality that I can actually access the information out of Membership database.

Somebody suggested me follwowing thread:

[Code]....

I am "Profile" object is not recognized in my code I think they are trying to refer to some some instance of a class here by the word Profile but I am not sure what instance is that.

View 2 Replies

Security :: Get Current Windows User Username

Apr 26, 2010

Im using forms authentication and im trying to get the current username. I tried using Environment.UserName but I am getting "ASPNET". But if i change my application to windows authentication im getting the true username that is currently logged on. How can I get the true username that is currently logged on in the domain using the forms authentication.

View 3 Replies

Security :: Capture Username When A User Just Logged In?

Mar 19, 2010

I want to capture when a user logs in and his username. I am using a login control inside a anonymous temp[late of a login view control. on the logedin event of the login I have this code:

Dim log As Login = CType(sender, Login)
If Not log.UserName = "bcweed@live.ca" Then
Dim mil As MailUtility = New MailUtility
mil.ClientLogin(log.UserName)
End If

but log.username is always empty and so is the page.user.identity.name and the page.user.identity.isauthenticated always returns false this even thouhgt this is the LogedIn event of the login and also I "just loged in" I really did.. is there a way to capture this is the global.asax?

View 4 Replies

Security :: Retrieve The UserName For A Logged In User?

Mar 15, 2011

How do I retrieve the UserName for a logged in user? Membership.GetUser().UserName doesn't work for me - Object reference not set to an instance of an object.I need it to get the associated UserID which my own db tables use as primary keyFurthermore, as I am a rookie is the best approach to achieve this through LoggedIn as below?

[Code]...

View 7 Replies

Security :: Open Source User Profile And Role Management Application?

Dec 23, 2010

I am looking for an opensource .Net 4.0 user profile and role management module. I need to manage basic user profile updates and management. Does any body know if such a thing exist?

View 1 Replies

Security :: Membership And Profile System : Getting Information Of The Authenticated User From Database?

Aug 18, 2010

I m trying to use the profile system to get information of the authenticated user form the data base, just like the session system : the user is authenticated then I set same variable with information of this user coming from data base !I am familiar with PHP so i m trying to do it like that !Also, i woul like to join my own data base and the asp.net membership database !

View 1 Replies

Security :: Membership User Is Not Found After UserName Was Changed

Jan 16, 2011

I'm using Membership but allow to change UserName of specified user. I had user named Customer bound to role Customer, and then his username was changed to 123. Then i try to do something to get Roles of this user and get an error or empty result.

View 2 Replies







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