Click here to Skip to main content
13,250,883 members (49,020 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
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
PRIVACY SETTINGS.
please tell me any one.

Thanku
Posted 13-Dec-12 4:12am
Comments
Master Black 13-Dec-12 9:58am
   
Can you show your code for better understanding? If you have tried some code that can be helpful for our understanding. Please add some codes that you have tried in your code here too...

1 solution

Rate this: bad
 
good
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.Public)
{
lnkbtnPublic.Visible=true;
}
if(Profile.Privacy==Privacy.MyNetwork && User.NetworkId== Session["MyNetworkId"])
{
lnkbtnNetwork.Visible=true;
}
 
if(Profile.Privacy==Privacy.Private && User.Id== Session["MyUserId"])
{
lnkbtnPrivate.Visible=true;
}
 
  Permalink  

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 |
Web04 | 2.8.171114.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2017
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