tags:

views:

34

answers:

3

I have two menus based on someones credentials.

The menu is an UL within a wrapping DIV and I would like to place an If Then within that DIV to set is class dynamically.

Does anyone know if this is possible or if there is a better approach?

Thanks in advance!

A: 

Scratch that, actually that wont work.

I need to hide a specific list item and so what I will simply do is write that list item dynamically when the correct user is logged in.

Stefan
You need to give some code so people can help you more.
Aristos
You should edit your original question and not provide additional info as an answer. Stackoverflow doesn't work as a forum.
Robert Koritnik
+1  A: 

Give the element an id and add the runat="server" attribute to it. You can now access if from your code and set its attributes programmatically.

Rune Grimstad
+1  A: 

If its just a div, you can use asp:Panel instead -- asp:Panel will render a Div, and you can set its visibility in your code behind

Jason M