Click here to Skip to main content
12,560,241 members (59,357 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi all

My requirement is im my application somany users are registered using membership. Mainly i want to give for see my profile
"PUBLIC" "PRIVATE" and "MYNETWORK" . I have taken 3linkbuttons like public, private, mynetwork. when i click public linkbutton
i showed modalpopup i want to give to show my profile to all , when i click private linkbutton i showed another modalpopu i want to give to show my profile me
only. when i click mynetwork i showed another modalpopu i want ot show my profile mynetwork and as well as not access some users. JUST LIKE FACEBOOK
please tell me any one.

Posted 13-Dec-12 3:12am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Make all the link buttons as visible=false by default.

Then you can use this pseudocode to show the link buttons on the basis of the preferences set for the profile and by checking the authenticity of the logged in user

if(Profile.Privacy==Privacy.MyNetwork && User.NetworkId== Session["MyNetworkId"])
if(Profile.Privacy==Privacy.Private && User.Id== Session["MyUserId"])

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.161026.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100