RadioButtonList control

  • Thread starter Thread starter Stephen Noronha
  • Start date Start date
S

Stephen Noronha

Hi all,

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 Database" and if manager logs in he should

Please advice,
Thanks in advance,

Stephen
 
Sure, but it really depends on how you're adding the radio buttons to
the list? Can you give some more info on how exactly you're adding
them? I'd think in general you just just not add them, or at worst,
just remove them from the list.

Bruce Dunwiddie
http://www.csvreader.com
 
Hi Bruce,

The way I am adding is like this
<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
 
Back
Top