Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Professional
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old March 23rd, 2009, 03:25 PM
Registered User
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Disabling texbox based on the selection of 4 radio buttons

I am trying to disable a RFV for a textbox if 4 different radio buttons are selected as "NO".

I had easily done this with .NET 2.0 using client-side scripting, however, that did not work on .NET 1.1. Now, I am trying to do something like:

if (one.SelectedItem.Value == "Yes" || two.SelectedItem.Value == "Yes" || three.SelectedItem.Value == "Yes" || four.SelectedItem.Value == "Yes" )
tboxValidator.Enabled = true;
tboxValidator.Enabled = false;
I am having a problem knowing where and how to fire the code above.

Any help is truly appreciated.

Thank you.

Last edited by nepal; March 23rd, 2009 at 03:31 PM..
Old April 1st, 2009, 05:35 PM
Authorized User
Join Date: Jun 2007
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to hericles

You can put that code in a function that is called by the click method of each radio button. Then, as each radio button is clicked, the code toggles the RFV on/off as needed.

\"I will prepare and one day my chance will come.\"

Similar Threads
Thread Thread Starter Forum Replies Last Post
enable/disable textfields based on radio selection carrie.mims Javascript How-To 5 December 8th, 2006 05:41 AM
how to automate selection of radio buttons using v satish_k VB.NET 2002/2003 Basics 1 September 28th, 2006 12:11 PM
how to automate selection of radio buttons using v satish_k Pro VB.NET 2002/2003 1 September 28th, 2006 09:46 AM
how to automate selection of radio buttons using v satish_k Excel VBA 0 September 27th, 2006 07:03 AM
Display based on radio button selection Mekala Javascript 4 August 5th, 2004 11:36 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.