开发者

Asp menu - set visible dependents on authentication

开发者 https://www.devze.com 2023-02-17 04:26 出处:网络
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 no

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

精彩评论

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