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
"Stephen Noronha" <> wrote in message
news:...
> 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
>
>
|