|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
conditional RequiredFieldValidatorHi,
I have a TextBox control that needs to have a value only if a drop down box on the same page has a certain value selected. Is it possible to achieve this using RequiredFieldValidator for the TextBox and having EnableClientScript = true (without a post)? Or is it possible from client code to enable/disable the RequiredFieldValidator ? Thank you On Fri, 11 Nov 2005 11:33:58 -0800, Vi wrote:
> Hi, I may be wrong in this answer, but in 1.1 you must use a CustomValidator> I have a TextBox control that needs to have a value only if a drop down box > on the same page has a certain value selected. Is it possible to achieve this > using RequiredFieldValidator for the TextBox and having EnableClientScript = > true (without a post)? > > Or is it possible from client code to enable/disable the > RequiredFieldValidator ? > > Thank you to achieve this effect. In 2.0 you can disable the validator. I have seen code in http://www.peterblum.com/vam/valmain.aspx by Peter Blum
Web Server Control and property tree in design time like Font has.
Retrieve Datagrid Element Index by Name Postback in Web Controls client-side .NET control Retrieve GridView column header text on sort how to override DropDownList.SelectedValue property Coloring Calendar !!! Combining 2 Fields Using ListBox.DataTextField LoadControl and Multiple IDs in UserControls Error DropDownList |
|||||||||||||||||||||||