Users customise their profile page for all users

Hi there

I am a bit of a newbie to ASP.NET.  All my web development experience before has been with good old asp pages!

So anyways here's what I was wondering.  I have a page called ViewProfile which displays the information about a particular user.  The information is pulled from a users table stored in SQL server.  The user profile displayed is determined by the id parameter passed in the url (for example - ViewProfile.aspx?id=123).  This allows other users of the system to see another users profile (the appropriate links etc are on the pages).

Now here's the bit I'm not so sure on.  What I want to do is allow the users to determine what information they wish to display about themselves.  Say for example I had three groups called "Contact Information", "Personal Information" and "Hobbies & Interests", and User A only wanted to display "Hobbies & Interests" but User B wanted to display them all can I use webparts to allow the users to set up their profile page to display just the groups they want?  Then if User A viewed User B's profile he would all user B's information, but if User B looked at A's he would only see User A's hobbies.

I hope this is clear!  Don't know if I've quite got across what I'm trying to say.

Anyways any help would be greatly appreciated.

Nick

0
djnickwatt
11/2/2007 1:25:16 PM
asp.net.personalization 3779 articles. 0 followers. Follow

4 Replies
727 Views

Similar Articles

[PageSpeed] 58

take a look at a project I did on MSDN.  it creates a business class that can be used with objectdatasource to allow you to view all profiles including your own.

http://peterkellner.net/2006/03/13/adding-personalization-via-profiles-to-the-objectdatasource-in-aspnet-20/


Peter Kellner
http://73rdstreet.com and blogging at
http://PeterKellner.net
MVP, ASP.NET
0
pkellner
11/2/2007 1:55:56 PM

Thanks for the quick reply Peter.

I don't think I explained too well what I was trying to do.  The profile page I am talking about isn't simply to retrieve the information stored in the Profile class about the user.  The profile page is their own piece of the site where they will be able to add photographs and information about themselves (much like what you would do on the likes of MSN Spaces, Facebook or Bebo).  On Facebook users can add/remove information groups (like the groups I mentioned in my original post).  When another user views their page only the groups the user has selected are displayed.

So, therefore I would like a user to be able to edit the layout of their own page which would be exactly how it would display to the other users.  And if the original user viewed a different users profile they would see it how the new user had arranged it.

Hope that's a bit clearer.  I know what I mean its just a nightmare trying to explain it in words.

Nick

0
djnickwatt
11/2/2007 2:12:55 PM

It sounds like you might want to store the "type" of information a user wants to see in his profile?  then, when he looks at another profile, he knows what type of info to pull up.  Not exactly sure that's what you have in mind.  sorry.


Peter Kellner
http://73rdstreet.com and blogging at
http://PeterKellner.net
MVP, ASP.NET
0
pkellner
11/2/2007 2:25:11 PM

That's ok thank you. Reckon I'll just have to play around with the control and see what I can get from it.  I'm very much still in the planning stages of the project.  Most other things I already know or have looked into.  This was just an idea that came to me today so I haven't had an in depth look at yet.  It's obviously possible because I have visited other sites that do it.  As I'm fairly new to ASP.NET I thought it best to get things planned out properly so I'm not having to hack things together to work at a later stage.

Thanks again for you help.

0
djnickwatt
11/2/2007 4:30:59 PM
Reply:

Similar Artilces:

Single Users Profile and All Users Profiles List
I've made a discussion forum. And I have also installed simply asp.net membership. Now I want after click on user link to redirect to the page with User's info.I have simply user "John" and user "Bob" and everyone can click on those names and will see page with informations stored in Profile (Like Profile.Name, Profile.Address). I have three simply question:1. How to show profile values of other User ? Like I wrote above.2. How to list all users with for example their e-mails ? I mean: UserLogin - UserName - UserMail3. Or the easier way is to make new table with those all information an...

Create a class library to manage users Profile (to be used on user admin page)
Hi All... I am very perplexed.I have a working set of code that was deployed via the App_Code directory. I am now trying to convert this code into a class library for reuse purposes. The issue is that in the class library, I cannot find a way to reference the ProfileCommon object.A short piece of the former code looks like this:Dim prof As ProfileCommon prof = ProfileBase.Create(Username, True) prof.DefaultCustCode = DefCustCode prof.CompanyName = CompName prof.Name = Name prof.Save   The problem is, this no longer works:  I get an error "profilecommon is not define...

User Wordlist in User-Profile
high i saw in the TID10080800 that it is possible to point the User Word-List in example to a network drive like H:\\WT61US.UWL. how can i point it to the Userprofile like C:\Document and Setting\%USER%\\WT61US.UWL so it is copied to the server everytime the user logs out, but it is local for the notebook user's ? i dont now how to set it in the registry, that it point to the User-Profile. thanks Sascha Sascha, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has you...

User and User Profile Storage
How would you handle these situations? 1st Situation Storing user and user's profile information in the database. I have two ideas to handle this. #1) Store all the users information in one table #2) Store only the information needed to login the user in the user table, and have a userProfile table to store the rest of the user's profile information. Why? #1) Easy to build queries for, but will cause more overhead when the user is simply logging in. However, it will cause a lower overhead when looking up a user's profile information, as there will be no need to do table jo...

Accessing Profile of users other than current user.
I want to access profile of other users. I want to allow my members to visit other members profile. I am not going to disply the senstive information. The default sql profile provider access to profile of current user only. Hi you need to use the getProfile function as follows:ProfileCommon UserProfile = Profile.GetProfile(UserName); UserProfile.PropertyName1=....   Please read this related thread : http://forums.asp.net/p/1243638/2279740.aspx   Regards,Regards,Anas Ghanem.Note:Please Don't hesitate to click "Report Abuse" link if you noticed something wron...

user table/user profile ques
hi i have my own user table with user profiles, password etc...how to merge it with the dnn user table... is there any way. i am confused as it seems i wil have to create 100's of user in order to make dnn fucntioning for al the usersany inputs on this?thanks somebody must have faced some issues ref the same?/// anyone has any idea..   pls suggest i am stil looking for any info /feedback if anyone can giveit will be a big helpthanks In general, it is possible in DNN3 by writing your own membership provider, replacing the original Microsoft membership provider, that is used as a...

Modify User Information / User Profile
I have been rooting around looking for the answer... with no luck... I want to modify the User Information / User Profile collected, for example delete MSN, AIM and Yahoo and add City, State and Zip. Where is this? Is it right in front of my nose? Thanks in advance, (again). The table in the DB is the Community_Users table. You will have to either extend this table, or create a new table using a foreign key relationship to the users table to hold your new fields. You probably don't need to mod any stored proc though since the profile procedures use select * (bad design, but ...

Retrieving User profile values for all users.
Hi, I had a search but could not find the answer to this question.  I am wanting to be able to retrieve all the individual profile values for every user and then show their first and last name in a drop down list so that I can select the name (value will be username).  I thought of gathering all the usernames in a datareader, then looping through each username and add the user profiles to a dataset, but how do I get the user profile values? I have found how to get the profile values for individual users when they have logged in using the ProfileBase =  HttpContext.Current.Pr...

Accessing User.ProviderUserKey through Page.User
I'm currently using the standard SqlMembershipProvider that ships with ASP.NET.  I have used the aspnet_regsql tool to add the membership tables to my database.  I would like to access User.ProviderUserKey on my pages and I'm wondering what the best way of doing this is. Let me explain... Most tables in my database have a UserId (uniqueidentifier) column that stores the UserId of the user who contributed each row into the table.  In my pages that provide insert functionality I would like to just call the Insert method passing a reference to either my user or just the u...

User Profiles
Hi Whats the best way for uploading photos? Is there a DNN control or standard? I need to store a photo against a user for my UserData - User Profiles module (see dumbTV for 90% finished version - click on any username to see the details - some of them have photos already from my old site, but theirs no way to maintain them currently). I really don't want to have to code this all again and I was hoping this would be in a control already I could just add to my form? And also, how/where should I store it? Under PortalID\Profiles\UserID? Or do I dump them all into the root (I know in ...

Allowing users to view other users profiles
 Iv created a basic social networking site Using the built in membership roles provider and its working great. So far users can signup and create a profile, login edit their profile and upload an avatar. Also close their account and view a list of all site members.  But the one thing Iv not firgured out yet is how to allow users to view the profiles of other users. What I want to do is have a the usernames in the userlist display link to the the profile of the particular user. Now I assume I will have to send the username in the query string to the profile page but how do I extract...

manage default user profile for all users
We're are halfway through a rollout of all new machines (W2K SP3). I just discovered that you can change the default user profile to a custom one by copying over the default user profile in W2k. This could save me tons of time, as it takes care of all the nitpicky stuff (IE6, Office 2k, media player, etc) that one has to setup for each user. Unfortunately, we've already ghosted our machines with the standard default user profile (and I'm not planning on going back and reloading a custom profile on each machine). My question is this. Is it possible using z...

Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection
This is my first time to deploy an asp.net2 web site. Everything is working fine on my local computer but when i published the web site on a remote computer i get the error "Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed" (only in pages that try to access the database) Help pleaseee Hi You could take a look at this : http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=152338&SiteID=1Sincerely,Young Fang Hi ...

customvalidator on a user control UC1 when the user clicks a button located on a different user control UC2 on the page
Hi, I am maintaining page where a user control is initialized  dynamically. The user control UC1 has a customvalidator using server side validation. When the postback is caused by a button inside the user control UC1 causes the postback, the customvalidator works fine and I get my validation results displayed. However, If I click a button located on a second user control UC2 on the main aspx page, the validation doesn t execute and I get no result validation error displayed. My question,how can I make the validation execute on the user control  UC1 when the postback is caused by...

Web resources about - Users customise their profile page for all users - asp.net.personalization

New 'teabag' lets you customise your beer
Can a specialised teabag turn an average brew into a craft beer in under four minutes?

Microsoft customises Azure for the Internet of Things
Microsoft wants to help organizations set up and run Internet of Things (IoT)-styled distributed systems, by providing a set of integrated Microsoft's ...

Customise your Tees, AsiaOne Women Fashion Lifestyle & News
AsiaOne Women Fashion - The UTme! app is available on iTunes and Google Play for free. -ST Read more at AsiaOne Women. Customise your own T-shirt ...


Xbox One Elite Controller announced, lets you customise it
At the Microsoft expo at E3, Microsoft has unveiled its new Xbox One controller design, dubbed the “Elite.” Microsoft is claiming it will have ...

Customise your Dream Footwear at Shoes of Prey
Shoes for girls are like sports for boys and having the chance to customize your most favourite fashion accessory right from scratch is nothing ...

Nokia Can Customise Windows Phone 7 As Much As It Likes
It appears Nokia got some pretty huge concessions out of Microsoft in return for creating the unstoppable super-team, with Nokia vice president ...

iOSFonts - Beautify and Customise your iDevice
We don't like Ellen Pao. We want her out, we want Victoria back. Save reddit by signing this petition now: ...

Tutorial: How to customise your iPhoto slideshows
How to customise your iPhoto slideshows Slideshows are a great way to show off your pictures, and they're really easy to set up in iPhoto. There's ...

How to customise your Linux desktop: Cinnamon
Part 4 in my series of how to make your Linux desktop your own. Today I look at the Cinnamon Desktop.

Resources last updated: 11/28/2015 1:36:54 AM