Click here to Skip to main content
15,892,643 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
Hi,
I have created Exitpass System, so every menu only certain user can access.

This is my system flow:
1) 4 Menu Item - Applicant, Approver, Security, Human Resource(HR)
2) Applicant - access by normal user only
3) Approver - can access menu Applicant and Approver
4) Security - can access menu Applicant and Security
5) HR - can access menu Applicant Human Resourse

Can anybody give me any solution for this...

Thanks and best regards
Posted

Using ASP.NET Menu control it's not a big deal.

How to enable, disable Menu programmatically[^]

Free attachment

ASP.NET Menu Examples[^](Around 35 examples about Menu control)
 
Share this answer
 
Given that HTML has no menu functionality built in, you must be using the ASP.NET menu control, or a third party control. What you need to do, is load a menu based on the user. Given that we have no idea how you manage the security aspect, or what menu you're using, your question is both obvious, trivial, and impossible to answer in any detail. What have you tried ? Where are you stuck ? Why do you have a task that relates to a secure system, if you have no idea how to perform it ?
 
Share this answer
 
Comments
Reena Aleesya 17-Jun-11 4:31am    
Hi,
here my piece of my code:

<div id="menu">
<ul>
<li>Applicant</li>
<li>Approver</li>
<li>Security Guard</li>
<li>HR</li>
</ul>
</div>

This i put on the top of system.
Only permission can access the menu item.

Need favor.
Thanks
I personaly would look into JQuery[^] if you have to / need to build the menu's using pure html.

As you can then create the menu structure according to the logon type.

For sanity I would of gone with Christian's suggestion using ASP.NET Menu Controls or third party Controls.
 
Share this answer
 
Comments
Reena Aleesya 21-Jun-11 0:52am    
I am fairy new at this and would like appreciate your assistant..
i tried looking for the example in the internet but not found...
can u give me same example..how to create using ASP.NET Menu Controls or third party Controls as you mention before.
Thanks
Simon_Whale 21-Jun-11 4:43am    
http://www.codeproject.com/KB/menus/PopulatingMenuControlASP2.aspx

read through this to start with, try out his code and modify it etc.. this is always a good place to start learning

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900