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.
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?
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
I have recently came across one of your article that uses TwitterAPI. The link is given below. My question is, can I use this for my application authenticating against twitter? If so, how can I access user's personal details like Name, Country, DOB, Email etc.?
I got the followig task.Create a website (Profile.aspx) in which the User can create and edit his profile.Well, I know how to write in a database, but how do I get the UserName oder the UserID to make a PrimaryKey?If the user is logged in a session will be started. In this session is the UserName but I don't know how to read out the UserName with ASP.NET to make an PrimaryKey. If I would try to read out the UserName with C# I must save it in an variable and give it somehow to my form.
Our application lets the administrator create new users. Since the administrator is logged in, I have set Logincreateduser = false so that the administrator is not logged out even after creating the new user.
The problem is :I need the userid of the newly created user to store additional details of the user in another database table. I see that i can get the username using Createuserwizard1.username; but how do I get the userID?
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.
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.
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?
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?
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.
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?
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.
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?
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
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 ..
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.
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?
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 !
i have a login form where it validates 'username' and 'password' against a datbase table. After a user logs in, i would like to show their details such as image, name, etc in a detailsview.