c# - dynamicaly add menu itmes to asp:Menu -


i have defined asp:menu in design time in master page.

i want in master page code behind in page-load event check if user in developer role, additional set of menu items.

how use c# add menu items code behind asp:menu?

i not using site map provider!

place in code behind:

menu1.items.add(new menuitem("text", "value")); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -