Click here to Skip to main content
11,644,982 members (68,560 online)
Rate this: bad
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
0 OriginalGriff 725
1 494
2 Sergey Alexandrovich Kryukov 464
3 Afzaal Ahmad Zeeshan 404
4 CPallini 386
0 OriginalGriff 1,020
1 Sergey Alexandrovich Kryukov 673
2 DamithSL 656
3 Afzaal Ahmad Zeeshan 652
4 CPallini 555

Advertise | Privacy | Mobile
Web01 | 2.8.150731.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2015
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