Groups | Blog | Home
all groups > asp.net webcontrols > november 2003 >

asp.net webcontrols : Validation Question


Keith Kowalski
11/20/2003 1:53:03 PM
I have The Following. (Visual Studio - ASP using VB)

Radiobutton with groupname="JNL"
ID="rb1"
Text="yes"
Runat="server"
Autopostback="True"

Radiobutton with groupname="JNL"
ID="rb2"
Text="no"
Runat="server"
Autopostback="True"

TextBox
ID="TXT1"
Runat="server"
Maxength="35"

What I am looking for is that when a person clicks yes on Radiobutton rb1 I
need the textbox to be required.

In other words .... Textbox only required if Radiobutton.text = yes

Please Help.
Keith

Keith Kowalski
11/21/2003 10:51:32 AM
Can anyone help me?
Keith
"Keith " <Keith@rdfs.com>
[quoted text, click to view]

Peter Blum
11/29/2003 3:41:41 PM
Hi Keith,

I have a commercial solution for you. Professional Validation And More is a
replacement to Microsoft's validators that overcome its many limitations
including this one. In this case, you would use a "VAM"
RequiredTextValidator with its "Enabler" property set to the rule "be sure
rb1 is checked". When its not, the validator stays off. Learn more at
http://www.peterblum.com/vam/home.aspx.

--- Peter Blum
www.PeterBlum.com
Email: PLBlum@PeterBlum.com

[quoted text, click to view]

AddThis Social Bookmark Button