470,638 Members | 1,577 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,638 developers. It's quick & easy.

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 requiredfieldvalidator 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

Jul 20 '05 #1
9 3838

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
www.coolpier.com

On Wed, 21 Jan 2004 03:44:55 -0600, tzigone
<tz************@mail.forum4designers.com> wrote:

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 requiredfieldvalidator 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


Brynn
www.coolpier.com

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!
Jul 20 '05 #2


tzigone wrote:

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 requiredfieldvalidator now is it better to
use 1 javascript instead of these validators?


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
http://JavaScript.FAQTs.com/

Jul 20 '05 #3
rf

"tzigone" <tz************@mail.forum4designers.com> wrote in message
news:tz************@mail.forum4designers.com...
Posted via http://www.forum4designers.com


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.javascript

comp.lang.javascript 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.javascript - you
will get a far better reaction to your question there.

Cheers
Richard.

Jul 20 '05 #4
"rf" <ma**********@the.time> wrote in message
news:hu*****************@news-server.bigpond.net.au...
<snip>
I suggest you obtain a newsreader and visit us at
ews:comp.lang.javascript

^
^--- 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.javascript via groups.google.com 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.
Jul 20 '05 #5
JRS: In article <hu*****************@news-server.bigpond.net.au>, seen
in news:comp.lang.javascript, rf <ma**********@the.time> posted at Wed,
21 Jan 2004 12:43:57 :-

Cheers
Richard.


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.demon.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)
Jul 20 '05 #6
"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote in message
news:jF**************@merlyn.demon.co.uk...
<snip>
Richard.
Please do not sign yourself Richard; we already have a
respected instance of the name.


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


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).
Jul 20 '05 #7

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
<sp**@merlyn.demon.co.uk> wrote:
JRS: In article <hu*****************@news-server.bigpond.net.au>, seen
in news:comp.lang.javascript, rf <ma**********@the.time> posted at Wed,
21 Jan 2004 12:43:57 :-

Cheers
Richard.


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.demon.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)


Brynn
www.coolpier.com

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!
Jul 20 '05 #8

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
<sp**@merlyn.demon.co.uk> wrote:
JRS: In article <hu*****************@news-server.bigpond.net.au>, seen
in news:comp.lang.javascript, rf <ma**********@the.time> posted at Wed,
21 Jan 2004 12:43:57 :-

Cheers
Richard.


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.demon.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)


Brynn
www.coolpier.com

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!
Jul 20 '05 #9
JRS: In article <bu*******************@news.demon.co.uk>, seen in
news:comp.lang.javascript, Richard Cornford
<Ri*****@litotes.demon.co.uk> posted at Thu, 22 Jan 2004 03:17:08 :-
"Dr John Stockton" <sp**@merlyn.demon.co.uk> wrote in message
news:jF**************@merlyn.demon.co.uk...
<snip>
Richard.
Please do not sign yourself Richard; we already have a
respected instance of the name.


Are you referring to me (or Richard Hockey, who I believe has been
positing in this group longer than I have)?


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.
In a technical newsgroup, posters should be willing to
identify themselves in full - personal name and
approximate location.
In my experience (which may not be representative) Richard is a very
common name, and for some reason particularly in IT.


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.

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.


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.demon.co.uk/news-use.htm> : about usage of News.
No Encoding. Quotes before replies. Snip well. Write clearly. Don't Mail News.
Jul 20 '05 #10

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by | last post: by
8 posts views Thread by chrisdude911 | last post: by
27 posts views Thread by Chris | last post: by
6 posts views Thread by Peter Afonin | last post: by
5 posts views Thread by Peter Afonin | last post: by
???
1 post views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.