开发者

Asp menu - set visible dependents on authentication

How do I set asp:menu node visible dependents on authentication (not o开发者_JS百科n roles)? Is it possible?


After authentication we generally have sessions to check is it a proper authentication or not. So on the basis of session you hide show menu.

Like

If(Session["MySession"]== null)
{
     aspmenu.visible= false;
}
else
{
   aspmenu.visible =true;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜