Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help in <asp:RadiobuttonList>

0 views
Skip to first unread message

Prakash

unread,
Sep 29, 2003, 8:45:17 AM9/29/03
to
Hi,
I have a RadioButtonlist control with two listitem.
I want Check the listitem based on the database value.
eg. there are two listItem ASP and asp.net.
if database value is asp, then asp list item should
be checked and if db value is asp.net, then asp.net
listitem should be checked.

How can i do this.

Help me..

Thanks in Advance.

with Reagards,
Prakash.

Johan Normén NSQUARED2

unread,
Sep 29, 2003, 9:42:17 AM9/29/03
to

You can use the SeledtedIndex if you want to.

JN

>.
>

David Wier

unread,
Sep 29, 2003, 10:58:20 AM9/29/03
to
A lot of this answer has to do with what form your received db value takes,
but it's something like:
If (dbValue)="ASP" then
rb1.SelectedIndex = rb1.Items.IndexOf(rb1.Items.FindByText("ASP"))
else
rb1.SelectedIndex = rb1.Items.IndexOf(rb1.Items.FindByText("ASP.Net"))
End If
--

David Wier
http://aspnet101.com
http://aspexpress.com


"Prakash" <dharma...@prudencetech.com> wrote in message
news:204e01c38687$88e40e20$a301...@phx.gbl...

0 new messages