By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,534 Members | 2,223 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,534 IT Pros & Developers. It's quick & easy.

Question about radio buttons.

P: n/a
This is probably a simple question, but I am new to this so bear with me.

I have a ASP.NET form that has a checkbox and a 2 radio buttons. When the
checkbox is checked, the 2 radio buttons are enabled using javascript. When
the checkbox is unchecked, the 2 radio button are disabled with javascript.

Here is the problem that I am seeing. When I submit the form with the radio
buttons disabled, the form returns with both radio buttons unchecked and
disabled. Next, if the checkbox is checked, the two radio buttons are
enabled by my javascript. If the user puts a check in one of the radio
buttons and does a submit, the server side does not see the check. When the
form returns back, both radio buttons are still unchecked. Does anyone have
any idea what is going on here?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Nov 18 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
if(!IsPostBack)
{
}

You are probably setting them as unchecked in the page_load.....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Ken Varn" <nospam> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
This is probably a simple question, but I am new to this so bear with me.

I have a ASP.NET form that has a checkbox and a 2 radio buttons. When the
checkbox is checked, the 2 radio buttons are enabled using javascript.
When
the checkbox is unchecked, the 2 radio button are disabled with
javascript.

Here is the problem that I am seeing. When I submit the form with the
radio
buttons disabled, the form returns with both radio buttons unchecked and
disabled. Next, if the checkbox is checked, the two radio buttons are
enabled by my javascript. If the user puts a check in one of the radio
buttons and does a submit, the server side does not see the check. When
the
form returns back, both radio buttons are still unchecked. Does anyone
have
any idea what is going on here?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------

Nov 18 '05 #2

P: n/a
HI Curt,
I came across a script on your page below (Waiting Message)
Do you have the .Net version and what should be added to (ur time intensive
lookup here!!):-
<%@Language=VBScript%>
<%
Response.write "<div id=MyText>Please Wait...</div>"
Response.flush()
..... your time intensive lookup here...
%>
<script language=javascript>
document.all.MyText.style.display = 'none';
</script>
"Curt_C [MVP]" wrote:
if(!IsPostBack)
{
}

You are probably setting them as unchecked in the page_load.....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Ken Varn" <nospam> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
This is probably a simple question, but I am new to this so bear with me.

I have a ASP.NET form that has a checkbox and a 2 radio buttons. When the
checkbox is checked, the 2 radio buttons are enabled using javascript.
When
the checkbox is unchecked, the 2 radio button are disabled with
javascript.

Here is the problem that I am seeing. When I submit the form with the
radio
buttons disabled, the form returns with both radio buttons unchecked and
disabled. Next, if the checkbox is checked, the two radio buttons are
enabled by my javascript. If the user puts a check in one of the radio
buttons and does a submit, the server side does not see the check. When
the
form returns back, both radio buttons are still unchecked. Does anyone
have
any idea what is going on here?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------


Nov 18 '05 #3

P: n/a
I am unsetting them on the client side in javascript.

--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:e8**************@TK2MSFTNGP11.phx.gbl...
if(!IsPostBack)
{
}

You are probably setting them as unchecked in the page_load.....

--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Ken Varn" <nospam> wrote in message
news:Ov**************@TK2MSFTNGP12.phx.gbl...
This is probably a simple question, but I am new to this so bear with me.
I have a ASP.NET form that has a checkbox and a 2 radio buttons. When the checkbox is checked, the 2 radio buttons are enabled using javascript.
When
the checkbox is unchecked, the 2 radio button are disabled with
javascript.

Here is the problem that I am seeing. When I submit the form with the
radio
buttons disabled, the form returns with both radio buttons unchecked and
disabled. Next, if the checkbox is checked, the two radio buttons are
enabled by my javascript. If the user puts a check in one of the radio
buttons and does a submit, the server side does not see the check. When
the
form returns back, both radio buttons are still unchecked. Does anyone
have
any idea what is going on here?
--
-----------------------------------
Ken Varn
Senior Software Engineer
Diebold Inc.

EmailID = varnk
Domain = Diebold.com
-----------------------------------


Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.