Home All Groups Group Topic Archive Search About

Radiobutton Checked value is gone

Author
21 Jul 2005 4:09 PM
Mike
Hi ...


I an building a web form with a usercotrole on the usercontrole i have
several Radiobuttons not in list but in in Group. so they are single radio
buttons. connected by a group name.

Why single radiobuttons because if you select the option c in the list of
{a,b,c,d) within the list there is also a input box, so if people checked
for "c" they have to fill in a input box. But i can't get the selected item
it seems that when the postback is made he looses his state and i get only
"false"back there where you expect true.

Is there a way to deal with this problem


thanx in advance,


Mike

Author
21 Jul 2005 7:58 PM
freshRecruit
Mike is the EnableViewState of the Checkbox set to true. That is the reason
you are losing the value at postback. Check the EnableViewState of the page
and set it to true also.
--
GettingHelp/JustTryingToHelp


Show quoteHide quote
"Mike" wrote:

> Hi ...
>
>
> I an building a web form with a usercotrole on the usercontrole i have
> several Radiobuttons not in list but in in Group. so they are single radio
> buttons. connected by a group name.
>
> Why single radiobuttons because if you select the option c in the list of
> {a,b,c,d) within the list there is also a input box, so if people checked
> for "c" they have to fill in a input box. But i can't get the selected item
> it seems that when the postback is made he looses his state and i get only
> "false"back there where you expect true.
>
> Is there a way to deal with this problem
>
>
> thanx in advance,
>
>
> Mike
>
>
>
Author
22 Jul 2005 4:22 AM
Mike
Thanx will have a look at that.
Show quoteHide quote
"freshRecruit" <freshRecr***@discussions.microsoft.com> schreef in bericht
news:7369CDDD-F929-4D5F-8BE8-8DF4761E8A58@microsoft.com...
> Mike is the EnableViewState of the Checkbox set to true. That is the
> reason
> you are losing the value at postback. Check the EnableViewState of the
> page
> and set it to true also.
> --
> GettingHelp/JustTryingToHelp
>
>
> "Mike" wrote:
>
>> Hi ...
>>
>>
>> I an building a web form with a usercotrole on the usercontrole i have
>> several Radiobuttons not in list but in in Group. so they are single
>> radio
>> buttons. connected by a group name.
>>
>> Why single radiobuttons because if you select the option c in the list of
>> {a,b,c,d) within the list there is also a input box, so if people checked
>> for "c" they have to fill in a input box. But i can't get the selected
>> item
>> it seems that when the postback is made he looses his state and i get
>> only
>> "false"back there where you expect true.
>>
>> Is there a way to deal with this problem
>>
>>
>> thanx in advance,
>>
>>
>> Mike
>>
>>
>>