Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. error in ValidatorEnable

error in ValidatorEnable

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavajavascriptasp-net
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thomas_joyee
    wrote on last edited by
    #1

    i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy

    _ D T 3 Replies Last reply
    0
    • T thomas_joyee

      i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      have you included this ValidatorEnable in your page. Best Regards, Apurva Kaushal

      T 1 Reply Last reply
      0
      • _ _AK_

        have you included this ValidatorEnable in your page. Best Regards, Apurva Kaushal

        T Offline
        T Offline
        thomas_joyee
        wrote on last edited by
        #3

        Hi Apurva, i can't understand your question. i declare those functions(valEnb(),valDis()) in the same aspx file where i call it. Thanks for your reply Thomas joy

        _ 1 Reply Last reply
        0
        • T thomas_joyee

          Hi Apurva, i can't understand your question. i declare those functions(valEnb(),valDis()) in the same aspx file where i call it. Thanks for your reply Thomas joy

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          No what i was asking is have you included ValidatorEnable (what i suppose is, this is a user defined function and needs to be included in the page in order to use them.) funtion in your page. Best Regards, Apurva Kaushal

          T 1 Reply Last reply
          0
          • _ _AK_

            No what i was asking is have you included ValidatorEnable (what i suppose is, this is a user defined function and needs to be included in the page in order to use them.) funtion in your page. Best Regards, Apurva Kaushal

            T Offline
            T Offline
            thomas_joyee
            wrote on last edited by
            #5

            Hi apurva, I think ValidatorEnable is a system defined function and there is no need for declare it. this code will works fine in local mechine, but when i uploaded it into the sever it shows those errors Thanks Thomas joy

            _ 1 Reply Last reply
            0
            • T thomas_joyee

              Hi apurva, I think ValidatorEnable is a system defined function and there is no need for declare it. this code will works fine in local mechine, but when i uploaded it into the sever it shows those errors Thanks Thomas joy

              _ Offline
              _ Offline
              _AK_
              wrote on last edited by
              #6

              Sorry to misunderstood your problem. Is this "aspnet_client" folder available in the root of the website. Best Regards, Apurva Kaushal

              T 1 Reply Last reply
              0
              • T thomas_joyee

                i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy

                D Offline
                D Offline
                DIMPLE_R
                wrote on last edited by
                #7

                Hi Thomas, As far as I know,"ValidatorEnable" is a function defined in the "WebUIValidation.js" file which is present in the C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_4322 folder... Try copying aspnet_client folder to the root of your website...Your application is probably not able to find the required file. --Dimple

                1 Reply Last reply
                0
                • _ _AK_

                  Sorry to misunderstood your problem. Is this "aspnet_client" folder available in the root of the website. Best Regards, Apurva Kaushal

                  T Offline
                  T Offline
                  thomas_joyee
                  wrote on last edited by
                  #8

                  Hi apurva, No need for sorry i always thanks for your reply. yes the aspnet_client folder is there. Thomsas joy

                  1 Reply Last reply
                  0
                  • T thomas_joyee

                    i m using two javascript functions in my asp.net project. these are the functions function valEnb(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),true); ValidatorEnable(document.getElementById("vldConfirmPwd"),true); ValidatorEnable(document.getElementById("vldConfirmPwd1"),true); ValidatorEnable(document.getElementById("vldFirstName"),true); ValidatorEnable(document.getElementById("vldFLName"),true); ValidatorEnable(document.getElementById("vldEmail"),true); ValidatorEnable(document.getElementById("vldEmail1"),true); ValidatorEnable(document.getElementById("vldCountry"),true); ValidatorEnable(document.getElementById("vldCity"),true); } function valDis(){ ValidatorEnable(document.getElementById("vldUserID"),true); ValidatorEnable(document.getElementById("vldPassword"),false); ValidatorEnable(document.getElementById("vldConfirmPwd"),false); ValidatorEnable(document.getElementById("vldConfirmPwd1"),false); ValidatorEnable(document.getElementById("vldFirstName"),false); ValidatorEnable(document.getElementById("vldFLName"),false); ValidatorEnable(document.getElementById("vldEmail"),false); ValidatorEnable(document.getElementById("vldEmail1"),false); ValidatorEnable(document.getElementById("vldCountry"),false); ValidatorEnable(document.getElementById("vldCity"),false); } these functions are used to enable or disable the validations. i call this functions on page_Load event. btnCheckID.Attributes.Add("onclick", "valDis();") btnSubmit.Attributes.Add("onclick", "valEnb();") but Internet explorer shows an error message - Error : object expected in FF java console shows like this - Error : ValidatorEnable is not declared please help me Thomas joy

                    T Offline
                    T Offline
                    thomas_joyee
                    wrote on last edited by
                    #9

                    Hi friends, Thanks for your great help. Now it works fine. Thomas joy

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups