Hello dude
There are many methods use like different user controls and check when a user lo-gin and apply an appropriate control.
Otherwise using membership to create role and user to use different menu displaying.
and may be helpful these links
http://www.johnpscott.co.uk/dotnettutorial/security/default.aspx[
^]
http://equipmentpro.hubpages.com/hub/Lesson-3-Using-Menus-in-ASPNET-Development[
^]
otherwise
Create two tables
MenuCategory with CategoryID, CategoryName,CategoryURL
Menu with MenuID,CategoryID, MenuName and MenuURL
Users with UserID, UserName
UserMenu with userID and MenuID
write a procedure like this
Create procedure Proc_GetMenuItems(@UserID int)
as
begin
SELECT cat.CategoryName,men.MenuName,men.MenuURL
FROM MenuCategory cat LEFT OUTER JOIN Menu men ON cat.CategoryID=men.CategoryID
LEFT OUTER JOIN UserMenu umenu ON men.MenuID =umenu.MenuID
WHERE UserID=@UserID;
END;
Execute the SP and get the menu items into a data reader/table and bind to a repeater or other data control and
add dynamically to the menu item.