Hello guys Now Explaining You how you bind menu control in asp.net
with value which coming from database.
Let Consider that you have database contain two table 1st table Contain menu detail they are as follow 1) Menu ID
2nd table is Menuid and userRole Mapping table contain following 1) Menu ID
Now As per role you can get the menu Datatable from database by writing query for that lets see we have datatable wchich contain menu information.
now front side we have one menu item control as
on server side write following code in pageload method
dtMenu = GetMenu(Session["Role"].ToString()); //this is datatable //which contain information menu which you want to bind for that userrole ShowMenu(NavigationMenu.Items, 0);
now here is ShowMenu Method