javascript vs asp.net validation

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

    javascript vs asp.net validation


    hello,
    i use asp.net validation controls in my site. i wonder whether usin
    javascript validation will fasten page load speed?
    there are currently lots of requiredfieldva lidator now is it better t
    use 1 javascript instead of these validators

    tzigon
    -----------------------------------------------------------------------
    Posted via http://www.forum4designers.co
    -----------------------------------------------------------------------
    View this thread: http://www.forum4designers.com/message35366.htm

  • Brynn

    #2
    Re: javascript vs asp.net validation


    THE BEST THING TO DO ... imho

    use both!!!

    I use javascript validation for data ... that way the majority of
    validation is always done on the client-side ... IE ... less page
    hits.

    HOWEVER...

    I also ALWAYS use server-side validation ... just in case ... for
    those people that have javascript off, etc...

    SO ANSWER TO QUESTION

    Continue to use your server-side validation, but to save hits to the
    server, add IDENTICLE javascript validation rules as well.

    This will be the best technique ... again imho

    Brynn




    On Wed, 21 Jan 2004 03:44:55 -0600, tzigone
    <tzigone.10dngn @mail.forum4des igners.com> wrote:
    [color=blue]
    >
    >hello,
    >i use asp.net validation controls in my site. i wonder whether using
    >javascript validation will fasten page load speed?
    >there are currently lots of requiredfieldva lidator now is it better to
    >use 1 javascript instead of these validators?
    >
    >
    >tzigone
    >------------------------------------------------------------------------
    >Posted via http://www.forum4designers.com
    >------------------------------------------------------------------------
    >View this thread: http://www.forum4designers.com/message35366.html
    >[/color]

    Brynn


    I participate in the group to help give examples of code.
    I do not guarantee the effects of any code posted.
    Test all code before use!

    Comment

    • Martin Honnen

      #3
      Re: javascript vs asp.net validation



      tzigone wrote:

      [color=blue]
      > i use asp.net validation controls in my site. i wonder whether using
      > javascript validation will fasten page load speed?
      > there are currently lots of requiredfieldva lidator now is it better to
      > use 1 javascript instead of these validators?[/color]

      It might depend on the browser, but at least for IE I think ASP.NET will
      generate (or can generate if you configure it to) client side validation
      code too. There are ASP.NET related newsgroups on the news.microsoft. com
      server, I think that is a better place to ask (after looking in the very
      long but very helpful .NET SDK documentation).

      --

      Martin Honnen


      Comment

      • rf

        #4
        Re: javascript vs asp.net validation


        "tzigone" <tzigone.10dngn @mail.forum4des igners.com> wrote in message
        news:tzigone.10 dngn@mail.forum 4designers.com. ..
        [color=blue]
        > Posted via http://www.forum4designers.com[/color]

        Do you realize that you are not posting to a webiste forum when you use this
        site. They are passing your posts on to the usenet newsgroup
        comp.lang.javas cript

        comp.lang.javas cript is a publicly available newsgroup. The website you are
        using is stealing its content directly from there and pretending that it is
        their own. There is no original material at all on the website you are
        looking at now. It is all coming directly from usenet.

        I suggest you obtain a newsreader and visit us at
        ews:comp.lang.j avascript - you
        will get a far better reaction to your question there.

        Cheers
        Richard.



        Comment

        • Richard Cornford

          #5
          Re: javascript vs asp.net validation

          "rf" <making.it.up@t he.time> wrote in message
          news:huuPb.2207 0$Wa.4500@news-server.bigpond. net.au...
          <snip>[color=blue]
          > I suggest you obtain a newsreader and visit us at
          > ews:comp.lang.j avascript[/color]
          ^
          ^--- Richard, If you are going to cut and paste this it might be more
          effective if you put that - n - back in the original.

          news:comp.lang. javascript

          <snip>

          You could also mention the possibility of reading and posting to
          comp.lang.javas cript via groups.google.c om in the event that only web
          access is available.

          (OP: Google may be slower at updating but at least they don't distort
          the format of posts, and the archive searching facilities are extremely
          useful).

          Richard.


          Comment

          • Dr John Stockton

            #6
            Re: javascript vs asp.net validation

            JRS: In article <huuPb.22070$Wa .4500@news-server.bigpond. net.au>, seen
            in news:comp.lang. javascript, rf <making.it.up@t he.time> posted at Wed,
            21 Jan 2004 12:43:57 :-
            [color=blue]
            >
            >Cheers
            >Richard.[/color]

            Please do not sign yourself Richard; we already have a respected
            instance of the name.

            In a technical newsgroup, posters should be willing to identify
            themselves in full - personal name and approximate location.

            --
            © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
            Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
            Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
            Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)

            Comment

            • Richard Cornford

              #7
              Re: javascript vs asp.net validation

              "Dr John Stockton" <spam@merlyn.de mon.co.uk> wrote in message
              news:jFyk9iMtbv DAFw3T@merlyn.d emon.co.uk...
              <snip>[color=blue][color=green]
              >>Richard.[/color]
              >
              >Please do not sign yourself Richard; we already have a
              >respected instance of the name.[/color]

              Are you referring to me (or Richard Hockey, who I believe has been
              positing in this group longer than I have)?
              [color=blue]
              >In a technical newsgroup, posters should be willing to
              >identify themselves in full - personal name and
              >approximate location.[/color]

              In my experience (which may not be representative) Richard is a very
              common name, and for some reason particularly in IT. I once worked for a
              small software house in which, of the 110 employees, 12 were called
              Richard. The majority programmers, including more than half of the Java
              team (which I was part of).

              Personally (and it may be largely a matter of the presentation in my
              newsreader) I look to the - from - line to identify the poster. I
              (usually, or eventually) notice when signatures at the bottom of
              messages differ from the - form - line but if that signature is an
              informal first name I can't see any reason for requiring it to be
              unique. First names are by their nature rarity unique, while Richard's
              "rf" - from - line is sufficiently distinct for me to be able to follow
              his contributions in the HTML groups and recognise him on the occasions
              when he posts here.

              Richard (Cornford).


              Comment

              • Brynn

                #8
                Re: javascript vs asp.net validation


                Personally, I think the Richard you are referring to need to make a
                more identifiable name if there is going to be some issue of it. I
                thiink this is a case of people making to much of nothing, and we need
                to get over it.

                Richard


                On Wed, 21 Jan 2004 22:02:21 +0000, Dr John Stockton
                <spam@merlyn.de mon.co.uk> wrote:
                [color=blue]
                >JRS: In article <huuPb.22070$Wa .4500@news-server.bigpond. net.au>, seen
                >in news:comp.lang. javascript, rf <making.it.up@t he.time> posted at Wed,
                >21 Jan 2004 12:43:57 :-
                >[color=green]
                >>
                >>Cheers
                >>Richard.[/color]
                >
                >Please do not sign yourself Richard; we already have a respected
                >instance of the name.
                >
                >In a technical newsgroup, posters should be willing to identify
                >themselves in full - personal name and approximate location.
                >
                >--
                > © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
                > Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
                > Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
                > Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)[/color]

                Brynn


                I participate in the group to help give examples of code.
                I do not guarantee the effects of any code posted.
                Test all code before use!

                Comment

                • Brynn

                  #9
                  Re: javascript vs asp.net validation


                  You guys can sign Brynn all week ... unfortunately, there are no user
                  name rules with NGs ... although this would be nice ... it isn't going
                  to be managable.

                  Brynn

                  Also, on a personal note, I only call someone Dr in my personal
                  circles if they refer to me as Sensei ... I have spent more years
                  training in serveral martial arts styles than it takes to go to med
                  school.

                  Sensei Brynn


                  On Wed, 21 Jan 2004 22:02:21 +0000, Dr John Stockton
                  <spam@merlyn.de mon.co.uk> wrote:
                  [color=blue]
                  >JRS: In article <huuPb.22070$Wa .4500@news-server.bigpond. net.au>, seen
                  >in news:comp.lang. javascript, rf <making.it.up@t he.time> posted at Wed,
                  >21 Jan 2004 12:43:57 :-
                  >[color=green]
                  >>
                  >>Cheers
                  >>Richard.[/color]
                  >
                  >Please do not sign yourself Richard; we already have a respected
                  >instance of the name.
                  >
                  >In a technical newsgroup, posters should be willing to identify
                  >themselves in full - personal name and approximate location.
                  >
                  >--
                  > © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
                  > Web <URL:http://www.merlyn.demo n.co.uk/> - FAQish topics, acronyms, & links.
                  > Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
                  > Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)[/color]

                  Brynn


                  I participate in the group to help give examples of code.
                  I do not guarantee the effects of any code posted.
                  Test all code before use!

                  Comment

                  • Dr John Stockton

                    #10
                    Re: javascript vs asp.net validation

                    JRS: In article <bunfbn$s5t$1$8 300dec7@news.de mon.co.uk>, seen in
                    news:comp.lang. javascript, Richard Cornford
                    <Richard@litote s.demon.co.uk> posted at Thu, 22 Jan 2004 03:17:08 :-[color=blue]
                    >"Dr John Stockton" <spam@merlyn.de mon.co.uk> wrote in message
                    >news:jFyk9iMtb vDAFw3T@merlyn. demon.co.uk...
                    ><snip>[color=green][color=darkred]
                    >>>Richard.[/color]
                    >>
                    >>Please do not sign yourself Richard; we already have a
                    >>respected instance of the name.[/color]
                    >
                    >Are you referring to me (or Richard Hockey, who I believe has been
                    >positing in this group longer than I have)?[/color]

                    To you, in the second instance, and to rf of AU, whose article I was
                    following-up-to, in the first. I don't recognise the name Hockey in
                    this context.[color=blue]
                    >[color=green]
                    >>In a technical newsgroup, posters should be willing to
                    >>identify themselves in full - personal name and
                    >>approximate location.[/color]
                    >
                    >In my experience (which may not be representative) Richard is a very
                    >common name, and for some reason particularly in IT.[/color]

                    Indeed, which makes discrimination even more necessary in that case than
                    it is in the case of, say, "Adrian". A Richard should be unwilling to
                    bask in, or detract from, the glory of another Richard.

                    [color=blue]
                    >Personally (and it may be largely a matter of the presentation in my
                    >newsreader) I look to the - from - line to identify the poster. I
                    >(usually, or eventually) notice when signatures at the bottom of
                    >messages differ from the - form - line but if that signature is an
                    >informal first name I can't see any reason for requiring it to be
                    >unique. First names are by their nature rarity unique, while Richard's
                    >"rf" - from - line is sufficiently distinct for me to be able to follow
                    >his contributions in the HTML groups and recognise him on the occasions
                    >when he posts here.[/color]

                    Newsreaders do vary in their /modes operandorum/ (?), and readers differ
                    in their eyesight, and monitors differ too. While I can read the
                    Subject and Author lines while passing down a newsgroup, they are for me
                    distinctly less easy to read than the bodies of the articles.

                    There is a general News convention that the bodies of articles should be
                    self-sufficient; that one should not normally need to look outside the
                    body, to the header or thread, while reading the article. And the
                    identity of the author is significant.

                    --
                    © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME ©
                    Web <URL:http://www.uwasa.fi/~ts/http/tsfaq.html> -> Timo Salmi: Usenet Q&A.
                    Web <URL:http://www.merlyn.demo n.co.uk/news-use.htm> : about usage of News.
                    No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.

                    Comment

                    Working...