|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Have validators take up no space if control is validHi;
We have a problem that we have 7 validators for a form and while they are hidden when the form values are ok - the hidden text does take up space leaving a couple of blank lines that look wrong. Is there a way to have validators that are valid take up no space on the form? -- thanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm Hello Dave,
As for the validators, are they still those custom validators you mentioned in another thread? For custom vaildator, since you can provide custom client-script function as client-side validation handler, you can freely use your own script code as you like. also, would you provide some code snippet and page fragment to show us how are you currently doing? Sincerely, Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights. No, it's a bunch of field required validators and one wildcard (email field)
and one matching (password field). -- Show quoteHide quotethanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm "Steven Cheng[MSFT]" wrote: > Hello Dave, > > As for the validators, are they still those custom validators you mentioned > in another thread? > > For custom vaildator, since you can provide custom client-script function > as client-side validation handler, you can freely use your own script code > as you like. also, would you provide some code snippet and page fragment to > show us how are you currently doing? > > Sincerely, > > Steven Cheng > > Microsoft MSDN Online Support Lead > > > > This posting is provided "AS IS" with no warranties, and confers no rights. > > > > > > > > > Thanks for the reply.
So the built-in validator's behavior doesn't quite meet your requirement here. have you tried using custom script to do the validation through a custom validator? So far it is not equite possible to customize the built-in validators. Sincerely, Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights. Ok thanks. I was hoping there was a way to not have the hidden text take up
space. -- Show quoteHide quotethanks - dave david_at_windward_dot_net http://www.windwardreports.com Cubicle Wars - http://www.windwardreports.com/film.htm "Steven Cheng[MSFT]" wrote: > Thanks for the reply. > > So the built-in validator's behavior doesn't quite meet your requirement > here. have you tried using custom script to do the validation through a > custom validator? So far it is not equite possible to customize the > built-in validators. > > Sincerely, > > Steven Cheng > > Microsoft MSDN Online Support Lead > > > > This posting is provided "AS IS" with no warranties, and confers no rights. > >
Using Custom Control in a FormView
#include for a DropDownList? Collection Property in web custom control Using Ajax control in custom server control How to show initial default values in a detailsview form Can I Use RequiredFieldValidator inside a repeater ? open explorer from asp.net? Setting name=, ID= for TextBox AutoComplete in ASP:TextBox control in ASP.NET 1.1 User Control access fails in debug mode, works in release mode |
|||||||||||||||||||||||