全部向所有注册用户显示myprofile [英] All to show myprofile to all registered users
问题描述
大家好
我的要求是我的应用程序somany用户使用会员注册。主要是我想看看我的个人资料
PUBLICPRIVATE和MYNETWORK。我已经采取了3个按钮,如公共,私人,mynetwork。当我点击公共链接按钮
i显示modalpopup我想给我显示我的个人资料,当我点击私人链接按钮我显示另一个modalpopu我想给我显示我的个人资料
$ b仅限$ b。当我点击mynetwork我显示另一个modalpopu我想要显示我的个人资料mynetwork,以及不访问一些用户。只是喜欢FACEBOOK
隐私设置。
请告诉我任何一个。
Thanku
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
推荐答案
默认情况下将所有链接按钮设为visible = false。
然后你可以使用这个伪代码来显示链接根据为配置文件设置的首选项以及通过检查登录用户的真实性来显示按钮
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;
}
这篇关于全部向所有注册用户显示myprofile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!