RadioButtonList Control

S

Stephen Noronha

Hi,

If I have a radiobuttonlist control and have some items in them, is it
possible to hide one item depending on "situation" for eg: Users, Managers
log in and see the same radiobuttonlist control but if user logs in he
should not see item "Query 5" and if manager logs in he should


<asp:radiobuttonlist id="TaskRadioButton" runat="server" Width="440px"
Font-Size="X-Small" RepeatDirection="Vertical" RepeatColumns="2">
<asp:ListItem Value="Query1" Selected="True">Query
1</asp:ListItem>
<asp:ListItem Value="Query2">Query 2</asp:ListItem>
<asp:ListItem Value="Query3">Query 3</asp:ListItem>
<asp:ListItem Value="Query4">Query 4</asp:ListItem>
<asp:ListItem Value="Query5">Query 5</asp:ListItem>
</asp:radiobuttonlist>

I want to display the list Item "Query 5" only if a manager logs in... which
I check ofcourse..

How do i do it?

Thanks,
Stephen
 
C

Curt

I suggest managing the list using vb.net (codebehind) by adding the list
items at runtime. When you get to the item you wish to hide, only add it if
the user is a manager.

Good luck!
Curt
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,149
Members
46,695
Latest member
StanleyDri

Latest Threads

Top