469,923 Members | 1,650 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,923 developers. It's quick & easy.

Question about radio buttons.

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
3 1508
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
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
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.

Similar topics

6 posts views Thread by Craig Keightley | last post: by
5 posts views Thread by Digital Puer | last post: by
1 post views Thread by Brian Henry | last post: by
1 post views Thread by Jay | last post: by
3 posts views Thread by Ferret Face | last post: by
3 posts views Thread by SAM | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.