ValidationSummary issue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Hardy Wang

    #1

    ValidationSummary issue

    Hi,
    I have some validations on a page, some of them are CustomValidatio n
    which will go to server to do some complex logic.
    I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
    popup. After I do a research over net, I found it is a bug from MS. Anybody
    has good work-around? I know I can loop through each validation control to
    check statuses of them, then build a JavaScript to register on client side.
    Any better idea?


    Thanks!

    --
    WWW: http://hardywang.1accesshost.com
    ICQ: 3359839
    yours Hardy


  • Steven Burton

    #2
    RE: ValidationSumma ry issue

    Did you ever find a solution?

    "Hardy Wang" wrote:
    [color=blue]
    > Hi,
    > I have some validations on a page, some of them are CustomValidatio n
    > which will go to server to do some complex logic.
    > I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
    > popup. After I do a research over net, I found it is a bug from MS. Anybody
    > has good work-around? I know I can loop through each validation control to
    > check statuses of them, then build a JavaScript to register on client side.
    > Any better idea?
    >
    >
    > Thanks!
    >
    > --
    > WWW: http://hardywang.1accesshost.com
    > ICQ: 3359839
    > yours Hardy
    >
    >
    >[/color]

    Comment

    • Steven Burton

      #3
      RE: ValidationSumma ry issue

      Just found this post from JustMe:

      Microsoft confirmed to me that this IS a bug. There will not be a
      quickfix, so you have to use one of the workarounds mentioned at
      kHSw, CMS, Content Management Server, Sharepoint, Javascript, DOTNET, VB, ASP, Visual Basic, C sharp, C#, SQL, SQL Server, script, Internet, Explorer, Microsoft, Windows, Dolmen, Tips, Howto, Tricks




      "Hardy Wang" wrote:
      [color=blue]
      > Hi,
      > I have some validations on a page, some of them are CustomValidatio n
      > which will go to server to do some complex logic.
      > I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
      > popup. After I do a research over net, I found it is a bug from MS. Anybody
      > has good work-around? I know I can loop through each validation control to
      > check statuses of them, then build a JavaScript to register on client side.
      > Any better idea?
      >
      >
      > Thanks!
      >
      > --
      > WWW: http://hardywang.1accesshost.com
      > ICQ: 3359839
      > yours Hardy
      >
      >
      >[/color]

      Comment

      • Steven Burton

        #4
        RE: ValidationSumma ry issue

        Actually, this link is pretty much useless since it does not directly address
        the issue.

        "Steven Burton" wrote:
        [color=blue]
        > Just found this post from JustMe:
        >
        > Microsoft confirmed to me that this IS a bug. There will not be a
        > quickfix, so you have to use one of the workarounds mentioned at
        > http://khsw.blogspot.com/2004/09/bug...idator_07.html
        >
        >
        >
        > "Hardy Wang" wrote:
        >[color=green]
        > > Hi,
        > > I have some validations on a page, some of them are CustomValidatio n
        > > which will go to server to do some complex logic.
        > > I set the ValidationSumma ry.ShowMessageB ox = true, but message box won't
        > > popup. After I do a research over net, I found it is a bug from MS. Anybody
        > > has good work-around? I know I can loop through each validation control to
        > > check statuses of them, then build a JavaScript to register on client side.
        > > Any better idea?
        > >
        > >
        > > Thanks!
        > >
        > > --
        > > WWW: http://hardywang.1accesshost.com
        > > ICQ: 3359839
        > > yours Hardy
        > >
        > >
        > >[/color][/color]

        Comment

        • Guest

          #5
          Re: ValidationSumma ry issue

          Here is a work-around.
          Add following JavaScript in the bottom of the html tag.
          <Script Language=JavaSc ript>
          <!--
          ValidationSumma ryOnSubmit();
          //-->
          </Script

          User submitted from AEWNET (http://www.aewnet.com/)

          Comment

          • redhair

            #6
            Re: ValidationSumma ry issue

            I don't know if it's a bug of .Net Framework, but I found a work-around:
            Just add following Javascript in the buttom of the .aspx page.
            <script LANGUAGE="Javas cript">
            <!--
            ValidationSumma ryOnSubmit();
            //-->
            </script>

            Let me know if it does solve this issue.



            "Steven Burton" <StevenBurton@d iscussions.micr osoft.com> wrote in message
            news:16F184F7-A158-493C-9848-0566FE449116@mi crosoft.com...[color=blue]
            > Actually, this link is pretty much useless since it does not directly[/color]
            address[color=blue]
            > the issue.
            >
            > "Steven Burton" wrote:
            >[color=green]
            > > Just found this post from JustMe:
            > >
            > > Microsoft confirmed to me that this IS a bug. There will not be a
            > > quickfix, so you have to use one of the workarounds mentioned at
            > > http://khsw.blogspot.com/2004/09/bug...idator_07.html
            > >
            > >
            > >
            > > "Hardy Wang" wrote:
            > >[color=darkred]
            > > > Hi,
            > > > I have some validations on a page, some of them are[/color][/color][/color]
            CustomValidatio n[color=blue][color=green][color=darkred]
            > > > which will go to server to do some complex logic.
            > > > I set the ValidationSumma ry.ShowMessageB ox = true, but message box[/color][/color][/color]
            won't[color=blue][color=green][color=darkred]
            > > > popup. After I do a research over net, I found it is a bug from MS.[/color][/color][/color]
            Anybody[color=blue][color=green][color=darkred]
            > > > has good work-around? I know I can loop through each validation[/color][/color][/color]
            control to[color=blue][color=green][color=darkred]
            > > > check statuses of them, then build a JavaScript to register on client[/color][/color][/color]
            side.[color=blue][color=green][color=darkred]
            > > > Any better idea?
            > > >
            > > >
            > > > Thanks!
            > > >
            > > > --
            > > > WWW: http://hardywang.1accesshost.com
            > > > ICQ: 3359839
            > > > yours Hardy
            > > >
            > > >
            > > >[/color][/color][/color]


            Comment

            • Steven Burton

              #7
              Re: ValidationSumma ry issue

              This solution results in a JavaScript "Object Expected" Error.

              Thanks anyway.

              "redhair" wrote:
              [color=blue]
              > I don't know if it's a bug of .Net Framework, but I found a work-around:
              > Just add following Javascript in the buttom of the .aspx page.
              > <script LANGUAGE="Javas cript">
              > <!--
              > ValidationSumma ryOnSubmit();
              > //-->
              > </script>
              >
              > Let me know if it does solve this issue.
              >
              >
              >
              > "Steven Burton" <StevenBurton@d iscussions.micr osoft.com> wrote in message
              > news:16F184F7-A158-493C-9848-0566FE449116@mi crosoft.com...[color=green]
              > > Actually, this link is pretty much useless since it does not directly[/color]
              > address[color=green]
              > > the issue.
              > >
              > > "Steven Burton" wrote:
              > >[color=darkred]
              > > > Just found this post from JustMe:
              > > >
              > > > Microsoft confirmed to me that this IS a bug. There will not be a
              > > > quickfix, so you have to use one of the workarounds mentioned at
              > > > http://khsw.blogspot.com/2004/09/bug...idator_07.html
              > > >
              > > >
              > > >
              > > > "Hardy Wang" wrote:
              > > >
              > > > > Hi,
              > > > > I have some validations on a page, some of them are[/color][/color]
              > CustomValidatio n[color=green][color=darkred]
              > > > > which will go to server to do some complex logic.
              > > > > I set the ValidationSumma ry.ShowMessageB ox = true, but message box[/color][/color]
              > won't[color=green][color=darkred]
              > > > > popup. After I do a research over net, I found it is a bug from MS.[/color][/color]
              > Anybody[color=green][color=darkred]
              > > > > has good work-around? I know I can loop through each validation[/color][/color]
              > control to[color=green][color=darkred]
              > > > > check statuses of them, then build a JavaScript to register on client[/color][/color]
              > side.[color=green][color=darkred]
              > > > > Any better idea?
              > > > >
              > > > >
              > > > > Thanks!
              > > > >
              > > > > --
              > > > > WWW: http://hardywang.1accesshost.com
              > > > > ICQ: 3359839
              > > > > yours Hardy
              > > > >
              > > > >
              > > > >[/color][/color]
              >
              >
              >[/color]

              Comment

              • Steven Burton

                #8
                Re: ValidationSumma ry issue

                A workaround that does seem to be effective is to place the following code
                inside the form tag:

                <script language="javas cript" type="text/javascript"
                src="/aspnet_client/system_web/1_1_4322/WebUIValidation .js"></script>

                The problem with this solution is that the version is hard-coded.


                "redhair" wrote:
                [color=blue]
                > I don't know if it's a bug of .Net Framework, but I found a work-around:
                > Just add following Javascript in the buttom of the .aspx page.
                > <script LANGUAGE="Javas cript">
                > <!--
                > ValidationSumma ryOnSubmit();
                > //-->
                > </script>
                >
                > Let me know if it does solve this issue.
                >
                >
                >
                > "Steven Burton" <StevenBurton@d iscussions.micr osoft.com> wrote in message
                > news:16F184F7-A158-493C-9848-0566FE449116@mi crosoft.com...[color=green]
                > > Actually, this link is pretty much useless since it does not directly[/color]
                > address[color=green]
                > > the issue.
                > >
                > > "Steven Burton" wrote:
                > >[color=darkred]
                > > > Just found this post from JustMe:
                > > >
                > > > Microsoft confirmed to me that this IS a bug. There will not be a
                > > > quickfix, so you have to use one of the workarounds mentioned at
                > > > http://khsw.blogspot.com/2004/09/bug...idator_07.html
                > > >
                > > >
                > > >
                > > > "Hardy Wang" wrote:
                > > >
                > > > > Hi,
                > > > > I have some validations on a page, some of them are[/color][/color]
                > CustomValidatio n[color=green][color=darkred]
                > > > > which will go to server to do some complex logic.
                > > > > I set the ValidationSumma ry.ShowMessageB ox = true, but message box[/color][/color]
                > won't[color=green][color=darkred]
                > > > > popup. After I do a research over net, I found it is a bug from MS.[/color][/color]
                > Anybody[color=green][color=darkred]
                > > > > has good work-around? I know I can loop through each validation[/color][/color]
                > control to[color=green][color=darkred]
                > > > > check statuses of them, then build a JavaScript to register on client[/color][/color]
                > side.[color=green][color=darkred]
                > > > > Any better idea?
                > > > >
                > > > >
                > > > > Thanks!
                > > > >
                > > > > --
                > > > > WWW: http://hardywang.1accesshost.com
                > > > > ICQ: 3359839
                > > > > yours Hardy
                > > > >
                > > > >
                > > > >[/color][/color]
                >
                >
                >[/color]

                Comment

                • redhair

                  #9
                  Re: ValidationSumma ry issue

                  Since the ValidationSumma ryOnSubmit() is a built-in function from the
                  WebUIValidation .js
                  The system should place the Javascript block automatically based on which
                  version .Net Framework
                  was registered and mapped to IIS, if not, the browser will pop up a window
                  to show following message:
                  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'.


                  "Steven Burton" <StevenBurton@d iscussions.micr osoft.com> wrote in message
                  news:AFFEFFCF-B968-4753-B62B-3DB079EEC093@mi crosoft.com...[color=blue]
                  > A workaround that does seem to be effective is to place the following code
                  > inside the form tag:
                  >
                  > <script language="javas cript" type="text/javascript"
                  > src="/aspnet_client/system_web/1_1_4322/WebUIValidation .js"></script>
                  >
                  > The problem with this solution is that the version is hard-coded.
                  >
                  >
                  > "redhair" wrote:
                  >[color=green]
                  > > I don't know if it's a bug of .Net Framework, but I found a work-around:
                  > > Just add following Javascript in the buttom of the .aspx page.
                  > > <script LANGUAGE="Javas cript">
                  > > <!--
                  > > ValidationSumma ryOnSubmit();
                  > > //-->
                  > > </script>
                  > >
                  > > Let me know if it does solve this issue.
                  > >
                  > >
                  > >
                  > > "Steven Burton" <StevenBurton@d iscussions.micr osoft.com> wrote in[/color][/color]
                  message[color=blue][color=green]
                  > > news:16F184F7-A158-493C-9848-0566FE449116@mi crosoft.com...[color=darkred]
                  > > > Actually, this link is pretty much useless since it does not directly[/color]
                  > > address[color=darkred]
                  > > > the issue.
                  > > >
                  > > > "Steven Burton" wrote:
                  > > >
                  > > > > Just found this post from JustMe:
                  > > > >
                  > > > > Microsoft confirmed to me that this IS a bug. There will not be a
                  > > > > quickfix, so you have to use one of the workarounds mentioned at
                  > > > > http://khsw.blogspot.com/2004/09/bug...idator_07.html
                  > > > >
                  > > > >
                  > > > >
                  > > > > "Hardy Wang" wrote:
                  > > > >
                  > > > > > Hi,
                  > > > > > I have some validations on a page, some of them are[/color]
                  > > CustomValidatio n[color=darkred]
                  > > > > > which will go to server to do some complex logic.
                  > > > > > I set the ValidationSumma ry.ShowMessageB ox = true, but message[/color][/color][/color]
                  box[color=blue][color=green]
                  > > won't[color=darkred]
                  > > > > > popup. After I do a research over net, I found it is a bug from[/color][/color][/color]
                  MS.[color=blue][color=green]
                  > > Anybody[color=darkred]
                  > > > > > has good work-around? I know I can loop through each validation[/color]
                  > > control to[color=darkred]
                  > > > > > check statuses of them, then build a JavaScript to register on[/color][/color][/color]
                  client[color=blue][color=green]
                  > > side.[color=darkred]
                  > > > > > Any better idea?
                  > > > > >
                  > > > > >
                  > > > > > Thanks!
                  > > > > >
                  > > > > > --
                  > > > > > WWW: http://hardywang.1accesshost.com
                  > > > > > ICQ: 3359839
                  > > > > > yours Hardy
                  > > > > >
                  > > > > >
                  > > > > >[/color]
                  > >
                  > >
                  > >[/color][/color]


                  Comment

                  • johanngunn

                    #10
                    Re: ValidationSumma ry issue


                    Hardy Wang wrote:[color=blue]
                    > *Hi,
                    > I have some validations on a page, some of them are CustomValidatio n
                    > which will go to server to do some complex logic.
                    > I set the ValidationSumma ry.ShowMessageB ox = true, but message box
                    > won't
                    > popup. After I do a research over net, I found it is a bug from MS.
                    > Anybody
                    > has good work-around? I know I can loop through each validation
                    > control to
                    > check statuses of them, then build a JavaScript to register on client
                    > side.
                    > Any better idea?
                    >
                    >
                    > Thanks!
                    >
                    > --
                    > WWW: http://hardywang.1accesshost.com
                    > ICQ: 3359839
                    > yours Hardy *[/color]



                    --
                    johanngunn
                    ------------------------------------------------------------------------
                    Posted via http://www.codecomments.com
                    ------------------------------------------------------------------------

                    Comment

                    Working...