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;
}
精彩评论