Why do I get a Javascript error when validating a hidden field?

Posted by ProgrammingPope on Stack Overflow See other posts from Stack Overflow or by ProgrammingPope
Published on 2010-04-16T19:45:34Z Indexed on 2010/04/16 19:53 UTC
Read the original article Hit count: 117

Filed under:
|
|

I have a custom control and I am trying to validate a hidden field. The validation works fine but I am getting the following Javascript error every time (output from Firebug):

Error: element is null

  • Code: var currentClassName = ' ' + WebForm_TrimString(element.className) + ' ';
  • URL: http://localhost:58462/WebResource.axd?d=...

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about JavaScript