Re: Highlight Required Field When Not Validated

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Its in WebUIValidation.js which will be under your Inetpub directory a
couple folders down. Just trace the functions starting with
Page_ClientValidate or whatever its called in the __doPostback
javascript function which you can see by doing a view page source.

Easiest way to see the offending line is to set a break point in the
aforementioned function and just step into the javascript functions
when the empty textbox doens't get validated (I remember the function
is called CustomValidate or something like that).

Anyway, its pretty straightforward. At work here all of our postback
controls call TPageClient_Validate() rather than the one ASP.NET one.
Most of our javascript funcitons are copied from ASP.NET except for
little changes like you've noticed. But there is no reason why you
can't simply edit the WebUIValidation.js file.

.



Relevant Pages

  • Re: Javascript and IE? Javascript and C#?
    ... uses a very simple javascript function change the style of an ... want to switch to a different set of behaviors (or markup) later on. ... and should go away in future versions of the HTML spec. ... actually provides trace(), along with many other useful debugging ...
    (comp.lang.javascript)
  • Re: Javascript and IE? Javascript and C#?
    ... uses a very simple javascript function change the style of an ... want to switch to a different set of behaviors (or markup) later on. ... and should go away in future versions of the HTML spec. ... actually provides trace(), along with many other useful debugging ...
    (comp.lang.javascript)