Urgent Menu Querry
-
Hi I am new in develoment can please any one help. I have had menu id "Menu3" in Menu.ascx file and i have .aspx pages. Menu3 has 4 options and every option has its own sub options Here is main structure of Menu3 Report Data Operation Logout I have two categories of users Admins and non Admins. I don't want to show "Operation" to non-admins. I need to decide at login time.I had saved admin flag in Session (user is admin or not) but how can i disable "operation" if flag is false in .aspx page_load event. I already include Menu.ascx in aspx pages. I am using VS2008. thanks
-
Hi I am new in develoment can please any one help. I have had menu id "Menu3" in Menu.ascx file and i have .aspx pages. Menu3 has 4 options and every option has its own sub options Here is main structure of Menu3 Report Data Operation Logout I have two categories of users Admins and non Admins. I don't want to show "Operation" to non-admins. I need to decide at login time.I had saved admin flag in Session (user is admin or not) but how can i disable "operation" if flag is false in .aspx page_load event. I already include Menu.ascx in aspx pages. I am using VS2008. thanks
Take a look at using the Membership and Role providers with .NET. Set up a sitemap to control the menu that appears, and attach the Admin role to the ones you want only the Admin users to see. This[^] should help. By the way, please ask questions about ASP.NET in the ASP.NET forum in future.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
-
Hi I am new in develoment can please any one help. I have had menu id "Menu3" in Menu.ascx file and i have .aspx pages. Menu3 has 4 options and every option has its own sub options Here is main structure of Menu3 Report Data Operation Logout I have two categories of users Admins and non Admins. I don't want to show "Operation" to non-admins. I need to decide at login time.I had saved admin flag in Session (user is admin or not) but how can i disable "operation" if flag is false in .aspx page_load event. I already include Menu.ascx in aspx pages. I am using VS2008. thanks
You can do it inside the Page_Load event in Menu.ascx webcontrol. Just check the Session and disable the option.
Regards, Leonardo Muzzi