Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / August 2005

Tip: Looking for answers? Try searching our database.

RadioButtonList control

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen Noronha - 23 Aug 2005 18:09 GMT
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
shriop - 24 Aug 2005 04:40 GMT
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
Stephen Noronha - 24 Aug 2005 16:45 GMT
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

> 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
[quoted text clipped - 3 lines]
> Bruce Dunwiddie
> http://www.csvreader.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.