Re: Setting RadioButtonList selection
- From: dhnriverside <dan@xxxxxxxxxxxxx>
- Date: Tue, 10 May 2005 05:48:03 -0700
Cheers David, that sorted it!
Dan
"David Lloyd" wrote:
> Dan:
>
> Try using the SelectedValue property of the RadioButtonList.
>
> For example:
>
> rblMyRBL.SelectedValue = 2
>
>
> --
> David Lloyd
> MCSD .NET
> http://LemingtonConsulting.com
>
> This response is supplied "as is" without any representations or warranties.
>
>
> "dhnriverside" <dan@xxxxxxxxxxxxx> wrote in message
> news:77D4C21A-54B8-472C-8C48-59093295DE98@xxxxxxxxxxxxxxxx
> Hi guys
>
> I have a radiobuttonlist with 3 listItems, with values 0, 1 and 2
> respectively.
>
> My database stores the number, but how do I set the selected on the brl to
> correspond with the database.
>
> I tried rblMyRBL.Items.FindByValue(dbfield).Selected = true;
>
> but the selection doesn't change. Any thoughts?
>
> Cheers
>
>
> Dan
>
>
>
.
- References:
- Setting RadioButtonList selection
- From: dhnriverside
- Re: Setting RadioButtonList selection
- From: David Lloyd
- Setting RadioButtonList selection
- Prev by Date: Re: Web request with an existing cookie...
- Next by Date: Re: MembershipProvider/session
- Previous by thread: Re: Setting RadioButtonList selection
- Next by thread: Re: Object reference not set to an instance of an object - newpost
- Index(es):