validator stop working

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • z f

    validator stop working

    Hi,


    i have a vb.net web application that uses validators.
    on my dev machine (Xp pro) it works fine.
    on the hosting machine (win2003) the validator (client side and server
    side ) stop working.
    i thought it might be related to norton internet security, so i disable it,
    but it also don't explain why local works and hosting not.

    and most of all why server side validation don't work.

    any suggestion might help solving this weird problem.

    TIA, z.



  • Patrick.O.Ige

    #2
    RE: validator stop working

    Is there an Error or it just doesn't FIRE?
    But is your script ok?
    It might be your aspnet_client (IN your wwwroot folder)
    Try running "aspnet_reg iis -c" from command!!
    Patrick

    "z f" wrote:
    [color=blue]
    > Hi,
    >
    >
    > i have a vb.net web application that uses validators.
    > on my dev machine (Xp pro) it works fine.
    > on the hosting machine (win2003) the validator (client side and server
    > side ) stop working.
    > i thought it might be related to norton internet security, so i disable it,
    > but it also don't explain why local works and hosting not.
    >
    > and most of all why server side validation don't work.
    >
    > any suggestion might help solving this weird problem.
    >
    > TIA, z.
    >
    >
    >
    >[/color]

    Comment

    • z f

      #3
      more information

      to add information when i compare the sources of the HTML generated by the
      different pages, the defferences are:
      (is this only framework versions [X-AspNet-Version: 1.1.4322 header for
      both, but maybe on defferent OS - behave deferently...)
      (or it might be a configuration problem/differences)
      please advise....


      the form tag have
      local:
      onsubmit="if (!ValidatorOnSu bmit()) return false;"
      hosting:
      onsubmit="Valid atorOnSubmit(); "


      for the submit buttons i have
      local:
      onclick="if (typeof(Page_Cl ientValidate) == 'function')
      Page_ClientVali date(); "
      hosting:
      --nothing for onclick--


      the validation scripts in the bottom of the page are also different:
      local
      <script language="javas cript" type="text/javascript">
      <!--
      var Page_Validation Active = false;
      if (typeof(clientI nformation) != "undefined" &&
      clientInformati on.appName.inde xOf("Explorer") != -1) {
      if (typeof(Page_Va lidationVer) == "undefined" )
      alert("Unable to find script library
      '/aspnet_client/system_web/1_1_4322/WebUIValidation .js'. Try placing this
      file manually, or reinstall by running 'aspnet_regiis -c'.");
      else if (Page_Validatio nVer != "125")
      alert("This page uses an incorrect version of WebUIValidation .js.
      The page expects version 125. The script library is " + Page_Validation Ver +
      ".");
      else
      ValidatorOnLoad ();
      }

      function ValidatorOnSubm it() {
      if (Page_Validatio nActive) {
      return ValidatorCommon OnSubmit();
      }
      return true;
      }
      // -->
      </script>




      hosting:
      <script language="javas cript">
      <!--
      var Page_Validation Active = false;
      if (typeof(clientI nformation) != "undefined" &&
      clientInformati on.appName.inde xOf("Explorer") != -1) {
      if ((typeof(Page_V alidationVer) != "undefined" ) && (Page_Validatio nVer
      == "125"))
      ValidatorOnLoad ();
      }

      function ValidatorOnSubm it() {
      if (Page_Validatio nActive) {
      ValidatorCommon OnSubmit();
      }
      }
      // -->
      </script>


      Comment

      • z f

        #4
        Re: validator stop working

        the aspnet_client is the same
        see my other post with more information


        "Patrick.O. Ige" <PatrickOIge@di scussions.micro soft.com> wrote in message
        news:C5110A3C-512C-478A-88B2-B55EDE5D07BD@mi crosoft.com...[color=blue]
        > Is there an Error or it just doesn't FIRE?
        > But is your script ok?
        > It might be your aspnet_client (IN your wwwroot folder)
        > Try running "aspnet_reg iis -c" from command!!
        > Patrick
        >
        > "z f" wrote:
        >[color=green]
        > > Hi,
        > >
        > >
        > > i have a vb.net web application that uses validators.
        > > on my dev machine (Xp pro) it works fine.
        > > on the hosting machine (win2003) the validator (client side and server
        > > side ) stop working.
        > > i thought it might be related to norton internet security, so i disable[/color][/color]
        it,[color=blue][color=green]
        > > but it also don't explain why local works and hosting not.
        > >
        > > and most of all why server side validation don't work.
        > >
        > > any suggestion might help solving this weird problem.
        > >
        > > TIA, z.
        > >
        > >
        > >
        > >[/color][/color]


        Comment

        • Patrick.O.Ige

          #5
          RE: more information

          Try checking for Page.IsValid in ur Script
          and try re-installing
          Try running "aspnet_reg iis -c" from command!!
          Patrick

          "z f" wrote:
          [color=blue]
          > to add information when i compare the sources of the HTML generated by the
          > different pages, the defferences are:
          > (is this only framework versions [X-AspNet-Version: 1.1.4322 header for
          > both, but maybe on defferent OS - behave deferently...)
          > (or it might be a configuration problem/differences)
          > please advise....
          >
          >
          > the form tag have
          > local:
          > onsubmit="if (!ValidatorOnSu bmit()) return false;"
          > hosting:
          > onsubmit="Valid atorOnSubmit(); "
          >
          >
          > for the submit buttons i have
          > local:
          > onclick="if (typeof(Page_Cl ientValidate) == 'function')
          > Page_ClientVali date(); "
          > hosting:
          > --nothing for onclick--
          >
          >
          > the validation scripts in the bottom of the page are also different:
          > local
          > <script language="javas cript" type="text/javascript">
          > <!--
          > var Page_Validation Active = false;
          > if (typeof(clientI nformation) != "undefined" &&
          > clientInformati on.appName.inde xOf("Explorer") != -1) {
          > if (typeof(Page_Va lidationVer) == "undefined" )
          > alert("Unable to find script library
          > '/aspnet_client/system_web/1_1_4322/WebUIValidation .js'. Try placing this
          > file manually, or reinstall by running 'aspnet_regiis -c'.");
          > else if (Page_Validatio nVer != "125")
          > alert("This page uses an incorrect version of WebUIValidation .js.
          > The page expects version 125. The script library is " + Page_Validation Ver +
          > ".");
          > else
          > ValidatorOnLoad ();
          > }
          >
          > function ValidatorOnSubm it() {
          > if (Page_Validatio nActive) {
          > return ValidatorCommon OnSubmit();
          > }
          > return true;
          > }
          > // -->
          > </script>
          >
          >
          >
          >
          > hosting:
          > <script language="javas cript">
          > <!--
          > var Page_Validation Active = false;
          > if (typeof(clientI nformation) != "undefined" &&
          > clientInformati on.appName.inde xOf("Explorer") != -1) {
          > if ((typeof(Page_V alidationVer) != "undefined" ) && (Page_Validatio nVer
          > == "125"))
          > ValidatorOnLoad ();
          > }
          >
          > function ValidatorOnSubm it() {
          > if (Page_Validatio nActive) {
          > ValidatorCommon OnSubmit();
          > }
          > }
          > // -->
          > </script>
          >
          >
          >[/color]

          Comment

          • z f

            #6
            Re: more information

            i'm checking isValid.

            the changes are probably in the framework since the script library is the
            same ( i checked it)
            but what are they exactly, for god sake?
            it's a hosting i can't do anything.
            and the framework version is the same.
            is there any check on the framework i can do in my code to make sure
            everything i need or configuration settings is OK at run-time?





            "Patrick.O. Ige" <PatrickOIge@di scussions.micro soft.com> wrote in message
            news:EBB354AB-19FF-48BC-8344-6659A72655D3@mi crosoft.com...[color=blue]
            > Try checking for Page.IsValid in ur Script
            > and try re-installing
            > Try running "aspnet_reg iis -c" from command!!
            > Patrick
            >
            > "z f" wrote:
            >[color=green]
            > > to add information when i compare the sources of the HTML generated by[/color][/color]
            the[color=blue][color=green]
            > > different pages, the defferences are:
            > > (is this only framework versions [X-AspNet-Version: 1.1.4322 header for
            > > both, but maybe on defferent OS - behave deferently...)
            > > (or it might be a configuration problem/differences)
            > > please advise....
            > >
            > >
            > > the form tag have
            > > local:
            > > onsubmit="if (!ValidatorOnSu bmit()) return false;"
            > > hosting:
            > > onsubmit="Valid atorOnSubmit(); "
            > >
            > >
            > > for the submit buttons i have
            > > local:
            > > onclick="if (typeof(Page_Cl ientValidate) == 'function')
            > > Page_ClientVali date(); "
            > > hosting:
            > > --nothing for onclick--
            > >
            > >
            > > the validation scripts in the bottom of the page are also different:
            > > local
            > > <script language="javas cript" type="text/javascript">
            > > <!--
            > > var Page_Validation Active = false;
            > > if (typeof(clientI nformation) != "undefined" &&
            > > clientInformati on.appName.inde xOf("Explorer") != -1) {
            > > if (typeof(Page_Va lidationVer) == "undefined" )
            > > alert("Unable to find script library
            > > '/aspnet_client/system_web/1_1_4322/WebUIValidation .js'. Try placing[/color][/color]
            this[color=blue][color=green]
            > > file manually, or reinstall by running 'aspnet_regiis -c'.");
            > > else if (Page_Validatio nVer != "125")
            > > alert("This page uses an incorrect version of[/color][/color]
            WebUIValidation .js.[color=blue][color=green]
            > > The page expects version 125. The script library is " +[/color][/color]
            Page_Validation Ver +[color=blue][color=green]
            > > ".");
            > > else
            > > ValidatorOnLoad ();
            > > }
            > >
            > > function ValidatorOnSubm it() {
            > > if (Page_Validatio nActive) {
            > > return ValidatorCommon OnSubmit();
            > > }
            > > return true;
            > > }
            > > // -->
            > > </script>
            > >
            > >
            > >
            > >
            > > hosting:
            > > <script language="javas cript">
            > > <!--
            > > var Page_Validation Active = false;
            > > if (typeof(clientI nformation) != "undefined" &&
            > > clientInformati on.appName.inde xOf("Explorer") != -1) {
            > > if ((typeof(Page_V alidationVer) != "undefined" ) &&[/color][/color]
            (Page_Validatio nVer[color=blue][color=green]
            > > == "125"))
            > > ValidatorOnLoad ();
            > > }
            > >
            > > function ValidatorOnSubm it() {
            > > if (Page_Validatio nActive) {
            > > ValidatorCommon OnSubmit();
            > > }
            > > }
            > > // -->
            > > </script>
            > >
            > >
            > >[/color][/color]


            Comment

            • Jignesh Desai

              #7
              Re: validator stop working

              Copy aspnet_client from your XP machine to your Win2003 machine under you
              website folder.

              -Regards,
              Jignesh


              "z f" <zigi@info-scope.co.il> wrote in message
              news:ey0FcMD2EH A.2644@TK2MSFTN GP11.phx.gbl...[color=blue]
              > Hi,
              >
              >
              > i have a vb.net web application that uses validators.
              > on my dev machine (Xp pro) it works fine.
              > on the hosting machine (win2003) the validator (client side and server
              > side ) stop working.
              > i thought it might be related to norton internet security, so i disable[/color]
              it,[color=blue]
              > but it also don't explain why local works and hosting not.
              >
              > and most of all why server side validation don't work.
              >
              > any suggestion might help solving this weird problem.
              >
              > TIA, z.
              >
              >
              >[/color]


              Comment

              • z. f.

                #8
                Re: validator stop working

                i did exactly that, but notice that the differrences are in the generated HTML by the framework, not in the referenced js script files.

                "Jignesh Desai" <jignesh_desai@ hotmail.com> wrote in message news:#q1hCFE2EH A.2600@TK2MSFTN GP09.phx.gbl...
                Copy aspnet_client from your XP machine to your Win2003 machine under you
                website folder.

                -Regards,
                Jignesh


                "z f" <zigi@info-scope.co.il> wrote in message
                news:ey0FcMD2EH A.2644@TK2MSFTN GP11.phx.gbl...[color=blue]
                > Hi,
                >
                >
                > i have a vb.net web application that uses validators.
                > on my dev machine (Xp pro) it works fine.
                > on the hosting machine (win2003) the validator (client side and server
                > side ) stop working.
                > i thought it might be related to norton internet security, so i disable[/color]
                it,[color=blue]
                > but it also don't explain why local works and hosting not.
                >
                > and most of all why server side validation don't work.
                >
                > any suggestion might help solving this weird problem.
                >
                > TIA, z.
                >
                >
                >[/color]


                Comment

                Working...