Click here to Skip to main content
15,896,727 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Comments
[no name] 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

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

C#
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;
}
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900