|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Need Help with ValidationHi ,
On one page I have: - textbox A and button A, - textbox B and button B, All in one form. I want it to work this way: when button A is clicked, required validation will apply to textbox A only, not textbox B, and when button B is clicked, the required validation will apply to textbox B only. How can I achieve this? for now when I click on button A, both textboxes A and B are validated. I'm using .net 1.1. Thanks in advance. Examine the use of the Javscript function ValidatorEnable(val, enable) from
within a CustomValidator: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp Show quoteHide quote "hn" wrote: > Hi , > > On one page I have: > - textbox A and button A, > - textbox B and button B, > All in one form. I want it to work this way: when button A is clicked, > required validation will apply to textbox A only, not textbox B, and when > button B is clicked, the required validation will apply to textbox B only. > How can I achieve this? for now when I click on button A, both textboxes A > and B are validated. > > I'm using .net 1.1. Thanks in advance. Thanks. Will do.
Show quoteHide quote "Phillip Williams" wrote: > Examine the use of the Javscript function ValidatorEnable(val, enable) from > within a CustomValidator: > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaspp/html/aspplusvalid.asp > -- > HTH, > Phillip Williams > http://www.societopia.net > http://www.webswapp.com > > > "hn" wrote: > > > Hi , > > > > On one page I have: > > - textbox A and button A, > > - textbox B and button B, > > All in one form. I want it to work this way: when button A is clicked, > > required validation will apply to textbox A only, not textbox B, and when > > button B is clicked, the required validation will apply to textbox B only. > > How can I achieve this? for now when I click on button A, both textboxes A > > and B are validated. > > > > I'm using .net 1.1. Thanks in advance.
Other interesting topics
Using Components in ASP.NET (C#)
XHTML 1.0 Retreive images stored in Access database Correct syntax for an update stored procedure About web.config file MS Forms 2.0 Combo box control Setting Profile properties for not logged in users Dynamic content problem Can we search keywords in a word document? Problem with aspnet_wp.exe |
|||||||||||||||||||||||