473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 3988

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sue | last post by:
After finishing up my first quarter JavaScript on 12/12/03, I decided to improve character checking on my project. In my project I only had to do very basic validation. Therefore, I only had one...
111
by: Retlak | last post by:
The recommended (on dozens of websites) and effective (works in Netscape, MSIE, Mozilla, probably others) way to detect if a browser has Javascript turned off is to put this in the <head>: ...
2
by: GIMME | last post by:
Background ... I've created a web application that allows a user to create an HTML application from IE. The application itself creates an XML representation of a XHTML form. The XHTML...
5
by: Allan M. | last post by:
I have a series of select boxes that must be populated client side, because they interact with each other. The design specification calls for these boxes to be updated without having to make a...
5
by: | last post by:
Hi all, Has anyone been able to write some custom javascript on the onclick event of submit button to do certain things like disable submit button, only submit form once etc. This was a breeze...
8
by: chrisdude911 | last post by:
how do i add video into a javascript web page with my own custom buttons?
27
by: Chris | last post by:
Hi, I have a form for uploading documents and inserting the data into a mysql db. I would like to validate the form. I have tried a couple of Javascript form validation functions, but it...
6
by: Peter Afonin | last post by:
Hello, I'm creating an application in ASP.NET 1.1. I need to check whether at least one checkbox in my datagrid has been checked. To do this, I'm using Javascript - I'm adding this code to...
5
by: Peter Afonin | last post by:
Hello, I'm not an expert in Javascript, so I'm seeking an advice. As I mentioned in my previous post, I use Javascript to check whether at least one checkbox in the datagrid has been checked....
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.