Conditional Validation ASP.NET

PerShoomo

New Member
I have 2 TextBoxes (textBoxA, textBoxB), both watched by their own RequiredFieldValidator. I want to 'enable' the RequiredFieldValidator for textBoxB just when textBoxA has a value (or meets some specific conditions).Use cases:Case 1textBoxA = ""; -> Show Required Field Validation MessagetextBoxB = ""; -> Do not show validation messageCase 2textBoxA = "has a value";textBoxB = ""; -> Show Required Field Validation MessageCase 3textBoxA = "has a value";textBoxB = "has a value too";Thanks for your help!!
 
Back
Top