validation controls

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

    validation controls

    Hi,

    the validation controls dont work on Netscape or Mozilla and only on
    Internet Explorer
    why? How do i correct this problem?

    Thanks


  • Bryant Hankins

    #2
    Re: validation controls

    The validation controls emit javascript that only supports IE. You would
    either have to switch to serverside validation or do something complex to
    override the javascript that the control emits as described here:



    --
    Hope this helps,
    Bryant Hankins
    Numinet Systems Inc.




    "Stephen" <stephenjobs@ho tmail.com> wrote in message
    news:%23CrYHZ1b EHA.3804@TK2MSF TNGP10.phx.gbl. ..[color=blue]
    > Hi,
    >
    > the validation controls dont work on Netscape or Mozilla and only on
    > Internet Explorer
    > why? How do i correct this problem?
    >
    > Thanks
    >
    >[/color]


    Comment

    • Peter Blum

      #3
      Re: validation controls

      I rewrote ASP.NET validation to address numerous limitations, including
      DHTML-only support for client-side validation, in Professional Validation
      And More (http://www.peterblum.com/vam/home.aspx).
      Its 22 validators greatly expand what you can do with validation, from the
      UI it offers, to the rules of validation. It helps you avoid writing custom
      code and hacks that are used with Microsoft's validators.

      --- Peter Blum

      Email: PLBlum@PeterBlu m.com
      Creator of "Profession al Validation And More" at


      "Stephen" <stephenjobs@ho tmail.com> wrote in message
      news:%23CrYHZ1b EHA.3804@TK2MSF TNGP10.phx.gbl. ..[color=blue]
      > Hi,
      >
      > the validation controls dont work on Netscape or Mozilla and only on
      > Internet Explorer
      > why? How do i correct this problem?
      >
      > Thanks
      >
      >[/color]


      Comment

      • Andrea Williams

        #4
        Re: validation controls

        Wow, if it's this much of a pain to support a browser other than Microsoft
        IE, then why are we relying on these controls? Most of us have to support
        more than MS. It's a good thing I'm also using server validation... I
        think it would be easiest just to leave it at that, at least for now... I'm
        running out of time.

        Andrea


        "Jim Cheshire [MSFT]" <jamesche@onlin e.microsoft.com > wrote in message
        news:LMqSQY2bEH A.3848@cpmsftng xa06.phx.gbl...[color=blue]
        > Stephen,
        >
        > The client-side validation in ASP.NET targets the Internet Explorer DOM.
        > In cases where a user is using a different browser, server-side validation
        > will take place.
        >
        > If you want client-side validation on all platforms, you can write your[/color]
        own[color=blue]
        > client validation scripts. Here's a sample I turned up:
        >
        > http://www.superdotnet.com/Article.aspx?ArticleID=126
        >
        > Jim Cheshire [MSFT]
        > MCP+I, MCSE, MCSD, MCDBA
        > Microsoft Developer Support
        > jamesche@online .microsoft.com
        >
        > This post is provided "AS-IS" with no warranties and confers no rights.
        >
        > --------------------[color=green]
        > >From: "Stephen" <stephenjobs@ho tmail.com>
        > >Subject: validation controls
        > >Date: Wed, 21 Jul 2004 12:11:58 -0700
        > >Lines: 9
        > >X-Priority: 3
        > >X-MSMail-Priority: Normal
        > >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
        > >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
        > >Message-ID: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>
        > >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
        > >NNTP-Posting-Host: 69.28.129.41
        > >Path:[/color]
        >[/color]
        cpmsftngxa06.ph x.gbl!TK2MSFTNG XA06.phx.gbl!TK 2MSFTNGXA05.phx .gbl!TK2MSFTNGP 0[color=blue]
        > 8.phx.gbl!TK2MS FTNGP10.phx.gbl[color=green]
        > >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
        microsoft.publi c.dotnet.framew ork.aspnet:2489 24[color=blue][color=green]
        > >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
        > >
        > >Hi,
        > >
        > >the validation controls dont work on Netscape or Mozilla and only on
        > >Internet Explorer
        > >why? How do i correct this problem?
        > >
        > >Thanks
        > >
        > >
        > >[/color]
        >[/color]


        Comment

        • Jim Cheshire [MSFT]

          #5
          Re: validation controls

          Andrea,

          The validation controls will validate on the client AND the server. If the
          browser does not support client validation, the control will validate on
          the server.

          Jim Cheshire [MSFT]
          MCP+I, MCSE, MCSD, MCDBA
          Microsoft Developer Support
          jamesche@online .microsoft.com

          This post is provided "AS-IS" with no warranties and confers no rights.

          --------------------[color=blue]
          >From: "Andrea Williams" <andreawil@hotm ailIHATESPAM.co m>
          >References: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>[/color]
          <LMqSQY2bEHA.38 48@cpmsftngxa06 .phx.gbl>[color=blue]
          >Subject: Re: validation controls
          >Date: Thu, 22 Jul 2004 15:35:46 -0700
          >Lines: 63
          >X-Priority: 3
          >X-MSMail-Priority: Normal
          >X-Newsreader: Microsoft Outlook Express 6.00.3790.181
          >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.181
          >Message-ID: <#vNk6wDcEHA.99 6@TK2MSFTNGP12. phx.gbl>
          >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
          >NNTP-Posting-Host: c-24-17-162-64.client.comca st.net 24.17.162.64
          >Path:[/color]
          cpmsftngxa06.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 2
          .phx.gbl[color=blue]
          >Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2492 46
          >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
          >
          >Wow, if it's this much of a pain to support a browser other than Microsoft
          >IE, then why are we relying on these controls? Most of us have to support
          >more than MS. It's a good thing I'm also using server validation... I
          >think it would be easiest just to leave it at that, at least for now...[/color]
          I'm[color=blue]
          >running out of time.
          >
          >Andrea
          >
          >
          >"Jim Cheshire [MSFT]" <jamesche@onlin e.microsoft.com > wrote in message
          >news:LMqSQY2bE HA.3848@cpmsftn gxa06.phx.gbl.. .[color=green]
          >> Stephen,
          >>
          >> The client-side validation in ASP.NET targets the Internet Explorer DOM.
          >> In cases where a user is using a different browser, server-side[/color][/color]
          validation[color=blue][color=green]
          >> will take place.
          >>
          >> If you want client-side validation on all platforms, you can write your[/color]
          >own[color=green]
          >> client validation scripts. Here's a sample I turned up:
          >>
          >> http://www.superdotnet.com/Article.aspx?ArticleID=126
          >>
          >> Jim Cheshire [MSFT]
          >> MCP+I, MCSE, MCSD, MCDBA
          >> Microsoft Developer Support
          >> jamesche@online .microsoft.com
          >>
          >> This post is provided "AS-IS" with no warranties and confers no rights.
          >>
          >> --------------------[color=darkred]
          >> >From: "Stephen" <stephenjobs@ho tmail.com>
          >> >Subject: validation controls
          >> >Date: Wed, 21 Jul 2004 12:11:58 -0700
          >> >Lines: 9
          >> >X-Priority: 3
          >> >X-MSMail-Priority: Normal
          >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
          >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
          >> >Message-ID: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>
          >> >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
          >> >NNTP-Posting-Host: 69.28.129.41
          >> >Path:[/color]
          >>[/color]
          >cpmsftngxa06.p hx.gbl!TK2MSFTN GXA06.phx.gbl!T K2MSFTNGXA05.ph x.gbl!TK2MSFTNG P[/color]
          0[color=blue][color=green]
          >> 8.phx.gbl!TK2MS FTNGP10.phx.gbl[color=darkred]
          >> >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
          >microsoft.publ ic.dotnet.frame work.aspnet:248 924[color=green][color=darkred]
          >> >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
          >> >
          >> >Hi,
          >> >
          >> >the validation controls dont work on Netscape or Mozilla and only on
          >> >Internet Explorer
          >> >why? How do i correct this problem?
          >> >
          >> >Thanks
          >> >
          >> >
          >> >[/color]
          >>[/color]
          >
          >
          >[/color]

          Comment

          • Andrea Williams

            #6
            Re: validation controls

            Unless I'm missing something, that is NOT happening for me! I'm had to
            create the code myself to validate my fields b/c the submit was happening.
            Is there something inparticular I need to do to make the validation work
            from the controls?

            Andrea


            "Jim Cheshire [MSFT]" <jamesche@onlin e.microsoft.com > wrote in message
            news:trRAslycEH A.2924@cpmsftng xa06.phx.gbl...[color=blue]
            > Andrea,
            >
            > The validation controls will validate on the client AND the server. If[/color]
            the[color=blue]
            > browser does not support client validation, the control will validate on
            > the server.
            >
            > Jim Cheshire [MSFT]
            > MCP+I, MCSE, MCSD, MCDBA
            > Microsoft Developer Support
            > jamesche@online .microsoft.com
            >
            > This post is provided "AS-IS" with no warranties and confers no rights.
            >
            > --------------------[color=green]
            > >From: "Andrea Williams" <andreawil@hotm ailIHATESPAM.co m>
            > >References: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>[/color]
            > <LMqSQY2bEHA.38 48@cpmsftngxa06 .phx.gbl>[color=green]
            > >Subject: Re: validation controls
            > >Date: Thu, 22 Jul 2004 15:35:46 -0700
            > >Lines: 63
            > >X-Priority: 3
            > >X-MSMail-Priority: Normal
            > >X-Newsreader: Microsoft Outlook Express 6.00.3790.181
            > >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.181
            > >Message-ID: <#vNk6wDcEHA.99 6@TK2MSFTNGP12. phx.gbl>
            > >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
            > >NNTP-Posting-Host: c-24-17-162-64.client.comca st.net 24.17.162.64
            > >Path:[/color]
            >[/color]
            cpmsftngxa06.ph x.gbl!TK2MSFTNG XA01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 2[color=blue]
            > phx.gbl[color=green]
            > >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
            microsoft.publi c.dotnet.framew ork.aspnet:2492 46[color=blue][color=green]
            > >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
            > >
            > >Wow, if it's this much of a pain to support a browser other than[/color][/color]
            Microsoft[color=blue][color=green]
            > >IE, then why are we relying on these controls? Most of us have to[/color][/color]
            support[color=blue][color=green]
            > >more than MS. It's a good thing I'm also using server validation... I
            > >think it would be easiest just to leave it at that, at least for now...[/color]
            > I'm[color=green]
            > >running out of time.
            > >
            > >Andrea
            > >
            > >
            > >"Jim Cheshire [MSFT]" <jamesche@onlin e.microsoft.com > wrote in message
            > >news:LMqSQY2bE HA.3848@cpmsftn gxa06.phx.gbl.. .[color=darkred]
            > >> Stephen,
            > >>
            > >> The client-side validation in ASP.NET targets the Internet Explorer[/color][/color][/color]
            DOM.[color=blue][color=green][color=darkred]
            > >> In cases where a user is using a different browser, server-side[/color][/color]
            > validation[color=green][color=darkred]
            > >> will take place.
            > >>
            > >> If you want client-side validation on all platforms, you can write your[/color]
            > >own[color=darkred]
            > >> client validation scripts. Here's a sample I turned up:
            > >>
            > >> http://www.superdotnet.com/Article.aspx?ArticleID=126
            > >>
            > >> Jim Cheshire [MSFT]
            > >> MCP+I, MCSE, MCSD, MCDBA
            > >> Microsoft Developer Support
            > >> jamesche@online .microsoft.com
            > >>
            > >> This post is provided "AS-IS" with no warranties and confers no rights.
            > >>
            > >> --------------------
            > >> >From: "Stephen" <stephenjobs@ho tmail.com>
            > >> >Subject: validation controls
            > >> >Date: Wed, 21 Jul 2004 12:11:58 -0700
            > >> >Lines: 9
            > >> >X-Priority: 3
            > >> >X-MSMail-Priority: Normal
            > >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
            > >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
            > >> >Message-ID: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>
            > >> >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
            > >> >NNTP-Posting-Host: 69.28.129.41
            > >> >Path:
            > >>[/color][/color]
            >
            >cpmsftngxa06.p hx.gbl!TK2MSFTN GXA06.phx.gbl!T K2MSFTNGXA05.ph x.gbl!TK2MSFTNG P
            > 0[color=green][color=darkred]
            > >> 8.phx.gbl!TK2MS FTNGP10.phx.gbl
            > >> >Xref: cpmsftngxa06.ph x.gbl[/color]
            > >microsoft.publ ic.dotnet.frame work.aspnet:248 924[color=darkred]
            > >> >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
            > >> >
            > >> >Hi,
            > >> >
            > >> >the validation controls dont work on Netscape or Mozilla and only on
            > >> >Internet Explorer
            > >> >why? How do i correct this problem?
            > >> >
            > >> >Thanks
            > >> >
            > >> >
            > >> >
            > >>[/color]
            > >
            > >
            > >[/color]
            >[/color]


            Comment

            • Jim Cheshire [MSFT]

              #7
              Re: validation controls

              Andrea,

              That is exactly what should happen. If the client does not support
              validation, validation takes place on the server.

              Jim Cheshire [MSFT]
              MCP+I, MCSE, MCSD, MCDBA
              Microsoft Developer Support
              jamesche@online .microsoft.com

              This post is provided "AS-IS" with no warranties and confers no rights.

              --------------------[color=blue]
              >From: "Andrea Williams" <andreawil@hotm ailIHATESPAM.co m>
              >References: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>[/color]
              <LMqSQY2bEHA.38 48@cpmsftngxa06 .phx.gbl>
              <#vNk6wDcEHA.99 6@TK2MSFTNGP12. phx.gbl>
              <trRAslycEHA.29 24@cpmsftngxa06 .phx.gbl>[color=blue]
              >Subject: Re: validation controls
              >Date: Tue, 27 Jul 2004 17:27:00 -0700
              >Lines: 120
              >X-Priority: 3
              >X-MSMail-Priority: Normal
              >X-Newsreader: Microsoft Outlook Express 6.00.3790.181
              >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
              >Message-ID: <ub0GVmDdEHA.37 92@TK2MSFTNGP09 .phx.gbl>
              >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
              >NNTP-Posting-Host: c-24-17-162-64.client.comca st.net 24.17.162.64
              >Path:[/color]
              cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP0 9
              .phx.gbl[color=blue]
              >Xref: cpmsftngxa10.ph x.gbl microsoft.publi c.dotnet.framew ork.aspnet:2511 85
              >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
              >
              >Unless I'm missing something, that is NOT happening for me! I'm had to
              >create the code myself to validate my fields b/c the submit was happening.
              >Is there something inparticular I need to do to make the validation work
              >from the controls?
              >
              >Andrea
              >
              >
              >"Jim Cheshire [MSFT]" <jamesche@onlin e.microsoft.com > wrote in message
              >news:trRAslycE HA.2924@cpmsftn gxa06.phx.gbl.. .[color=green]
              >> Andrea,
              >>
              >> The validation controls will validate on the client AND the server. If[/color]
              >the[color=green]
              >> browser does not support client validation, the control will validate on
              >> the server.
              >>
              >> Jim Cheshire [MSFT]
              >> MCP+I, MCSE, MCSD, MCDBA
              >> Microsoft Developer Support
              >> jamesche@online .microsoft.com
              >>
              >> This post is provided "AS-IS" with no warranties and confers no rights.
              >>
              >> --------------------[color=darkred]
              >> >From: "Andrea Williams" <andreawil@hotm ailIHATESPAM.co m>
              >> >References: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>[/color]
              >> <LMqSQY2bEHA.38 48@cpmsftngxa06 .phx.gbl>[color=darkred]
              >> >Subject: Re: validation controls
              >> >Date: Thu, 22 Jul 2004 15:35:46 -0700
              >> >Lines: 63
              >> >X-Priority: 3
              >> >X-MSMail-Priority: Normal
              >> >X-Newsreader: Microsoft Outlook Express 6.00.3790.181
              >> >X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.3790.181
              >> >Message-ID: <#vNk6wDcEHA.99 6@TK2MSFTNGP12. phx.gbl>
              >> >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
              >> >NNTP-Posting-Host: c-24-17-162-64.client.comca st.net 24.17.162.64
              >> >Path:[/color]
              >>[/color]
              >cpmsftngxa06.p hx.gbl!TK2MSFTN GXA01.phx.gbl!T K2MSFTNGP08.phx .gbl!TK2MSFTNGP 1[/color]
              2[color=blue][color=green]
              >> phx.gbl[color=darkred]
              >> >Xref: cpmsftngxa06.ph x.gbl[/color][/color]
              >microsoft.publ ic.dotnet.frame work.aspnet:249 246[color=green][color=darkred]
              >> >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
              >> >
              >> >Wow, if it's this much of a pain to support a browser other than[/color][/color]
              >Microsoft[color=green][color=darkred]
              >> >IE, then why are we relying on these controls? Most of us have to[/color][/color]
              >support[color=green][color=darkred]
              >> >more than MS. It's a good thing I'm also using server validation... I
              >> >think it would be easiest just to leave it at that, at least for now...[/color]
              >> I'm[color=darkred]
              >> >running out of time.
              >> >
              >> >Andrea
              >> >
              >> >
              >> >"Jim Cheshire [MSFT]" <jamesche@onlin e.microsoft.com > wrote in message
              >> >news:LMqSQY2bE HA.3848@cpmsftn gxa06.phx.gbl.. .
              >> >> Stephen,
              >> >>
              >> >> The client-side validation in ASP.NET targets the Internet Explorer[/color][/color]
              >DOM.[color=green][color=darkred]
              >> >> In cases where a user is using a different browser, server-side[/color]
              >> validation[color=darkred]
              >> >> will take place.
              >> >>
              >> >> If you want client-side validation on all platforms, you can write[/color][/color][/color]
              your[color=blue][color=green][color=darkred]
              >> >own
              >> >> client validation scripts. Here's a sample I turned up:
              >> >>
              >> >> http://www.superdotnet.com/Article.aspx?ArticleID=126
              >> >>
              >> >> Jim Cheshire [MSFT]
              >> >> MCP+I, MCSE, MCSD, MCDBA
              >> >> Microsoft Developer Support
              >> >> jamesche@online .microsoft.com
              >> >>
              >> >> This post is provided "AS-IS" with no warranties and confers no[/color][/color][/color]
              rights.[color=blue][color=green][color=darkred]
              >> >>
              >> >> --------------------
              >> >> >From: "Stephen" <stephenjobs@ho tmail.com>
              >> >> >Subject: validation controls
              >> >> >Date: Wed, 21 Jul 2004 12:11:58 -0700
              >> >> >Lines: 9
              >> >> >X-Priority: 3
              >> >> >X-MSMail-Priority: Normal
              >> >> >X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
              >> >> >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
              >> >> >Message-ID: <#CrYHZ1bEHA.38 04@TK2MSFTNGP10 .phx.gbl>
              >> >> >Newsgroups: microsoft.publi c.dotnet.framew ork.aspnet
              >> >> >NNTP-Posting-Host: 69.28.129.41
              >> >> >Path:
              >> >>[/color]
              >>
              >>cpmsftngxa06. phx.gbl!TK2MSFT NGXA06.phx.gbl! TK2MSFTNGXA05.p hx.gbl!TK2MSFTN G[/color][/color]
              P[color=blue][color=green]
              >> 0[color=darkred]
              >> >> 8.phx.gbl!TK2MS FTNGP10.phx.gbl
              >> >> >Xref: cpmsftngxa06.ph x.gbl
              >> >microsoft.publ ic.dotnet.frame work.aspnet:248 924
              >> >> >X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.aspnet
              >> >> >
              >> >> >Hi,
              >> >> >
              >> >> >the validation controls dont work on Netscape or Mozilla and only on
              >> >> >Internet Explorer
              >> >> >why? How do i correct this problem?
              >> >> >
              >> >> >Thanks
              >> >> >
              >> >> >
              >> >> >
              >> >>
              >> >
              >> >
              >> >[/color]
              >>[/color]
              >
              >
              >[/color]

              Comment

              Working...