Accessing htmlinputradiobutton value in server code

S

smita

Hi ,
Can anyone tell me where am i going wrong?

I have a checkbox and 2 Radiobuttons ...All these are HtmlControls...Now I
have a javascript where I enable the two Radiobuttons if the checkbox is
checked....Also All these three controls are Run as Server Controls so that
i can access the checked property in server code....i.e. on the same page I
have a Button(Web control) so in the Button Click Event i am accessing the
Checked property value of these HtmlControls....

Now the problem is that I am able to access the Chkbox checked property
correctly but the Radiobutton checked property always gives me the default
checked values and not the changed checked values....Like for e.g. if
initially Rbtn1 is checked and Rbtn2 is unchecked it always gives this value
even though I change the checked values before a post back....

I also tried to use the Server_Change( ) event ...but that event is not
getting triggered....Can any one tell me please where am i going wrong???

regards,
smita
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top