Browser says client-side validation function is undefined

Discussion in 'ASP .Net' started by Nathan Sokalski, Apr 10, 2009.

  1. I am writing a validator (by inheriting from the BaseValidator class), and
    am including the evaluationfunction attribute to specify the client-side
    JavaScript validation function. I have successfully done all of these things
    before, with no problems. However, when I go to my test page, it gives me
    the following error:

    Error: 'MinMaxSelectedValidatorIsValid' is undefined

    If I do a view source, I can see the JavaScript function included in the
    view source exactly where I would expect it to be. Does anybody have any
    idea as to why this might be happening? Any help would be appreciated.
    Thanks.
    --
    Nathan Sokalski

    http://www.nathansokalski.com/
    Nathan Sokalski, Apr 10, 2009
    #1
    1. Advertising

  2. On 10 Apr., 01:29, "Nathan Sokalski" <> wrote:
    > I am writing a validator (by inheriting from the BaseValidator class), and
    > am including the evaluationfunction attribute to specify the client-side
    > JavaScript validation function. I have successfully done all of these things
    > before, with no problems. However, when I go to my test page, it gives me
    > the following error:
    >
    > Error:    'MinMaxSelectedValidatorIsValid' is undefined
    >
    > If I do a view source, I can see the JavaScript function included in the
    > view source exactly where I would expect it to be. Does anybody have any
    > idea as to why this might be happening? Any help would be appreciated.
    > Thanks.
    > --
    > Nathan Sokalski
    > ://www.nathansokalski.com/


    Hi Nathan,

    if 'MinMaxSelectedValidatorIsValid' is a name of js function and it is
    included in the page, then maybe it cannot be found from the place you
    called it (it should be declared before that place)
    Alexey Smirnov, Apr 13, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Matt
    Replies:
    14
    Views:
    4,073
    Chad Z. Hower aka Kudzu
    Jan 30, 2004
  2. =?Utf-8?B?dmlkeWE=?=
    Replies:
    1
    Views:
    741
    Kevin Spencer
    Jun 2, 2005
  3. Boss302
    Replies:
    0
    Views:
    1,024
    Boss302
    Nov 21, 2006
  4. Bogdan
    Replies:
    2
    Views:
    639
    Bogdan
    Jun 9, 2008
  5. Nathan Sokalski

    Browser says client-side validation function is undefined

    Nathan Sokalski, Apr 10, 2009, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    916
    Alexey Smirnov
    Apr 13, 2009
Loading...

Share This Page