Click here to Skip to main content
Rate this: bad
good
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
PRIVACY SETTINGS.
please tell me any one.
 
Thanku
Posted 13-Dec-12 3:12am

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)



Advertise | Privacy | Mobile
Web02 | 2.8.140926.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2014
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