473,320 Members | 2,012 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.

Server Workload!

I am a newbie in ASP.NET (using VB.NET) & work on Windows 2000 Professional.

I find that the client browser just doesn't play any role other than rendering the page in HTML & the server does all the work. Even the various HTML/Web controls are validated by the server. So ASP.NET relying so much on the server to do even a small task - doesn't this put extra load on the server & in the process,slow down the retrieval time of ASPX pages? A Form can easily be validated using a client-side script like JavaScript (wherein the server has no idea of those validations). Now since the onus of validating the different Form fields is on the client, the result is instantaneous. For e.g. if a user submits a Form without providing his name, an alert message box will get generated at once telling him to enter his name. This not only will ensure that the client needn't "talk" to the server every now and then & increase the workload on the server which may be catering to hundreds of requests at that time but also will minimize users' time during the transaction. Or is it something like the benefits of ASP.NET far outweigh its drawbacks & deficiencies?

The validation part is just an example I have cited.

Thanks,

Arpan
Nov 18 '05 #1
3 1459
You can let the client validate the input - it is actually directly supported by controls such as RegularExpressionValidator or CustomValidator.
CustomValidator will let you specify a client-side script to execute.

Doing validation does make the server work a little bit more and probably should be done on the client as well. I say as well because not doing it on the server opens up for SQL Injection for example.

If there are any drawbacks with ASP.NET I don't know about them...
I've used both ASP, ASP.NET and PHP and think that ASP.NET is the best of all of them. PHP is a good alternative for small sites, but as soon as the site grows it becomes harder to maintain. An ASP.NET site if built properly will generate almost the same amount of work regardless of it's size (of course a site on the Microsoft scale would be more to maintain than the local zoo website)

// Fredrik
"Arpan" <ar******@hotmail.com> wrote in message news:OW**************@TK2MSFTNGP14.phx.gbl...
I am a newbie in ASP.NET (using VB.NET) & work on Windows 2000 Professional.

I find that the client browser just doesn't play any role other than rendering the page in HTML & the server does all the work. Even the various HTML/Web controls are validated by the server. So ASP.NET relying so much on the server to do even a small task - doesn't this put extra load on the server & in the process,slow down the retrieval time of ASPX pages? A Form can easily be validated using a client-side script like JavaScript (wherein the server has no idea of those validations). Now since the onus of validating the different Form fields is on the client, the result is instantaneous. For e.g. if a user submits a Form without providing his name, an alert message box will get generated at once telling him to enter his name. This not only will ensure that the client needn't "talk" to the server every now and then & increase the workload on the server which may be catering to hundreds of requests at that time but also will minimize users' time during the transaction. Or is it something like the benefits of ASP.NET far outweigh its drawbacks & deficiencies?

The validation part is just an example I have cited.

Thanks,

Arpan
Nov 18 '05 #2
Arpan,
I important point that comes to my mind is that a lot of users have started disabling their "enable script to run" option in their browser because "virus-makers" have exploited that feature to run "hidden" scripts.
In my opinion, a good programming practice would be to use client side scripting alongwith Server-side validation.

thanks,
ampra
"Arpan" <ar******@hotmail.com> wrote in message news:OW**************@TK2MSFTNGP14.phx.gbl...
I am a newbie in ASP.NET (using VB.NET) & work on Windows 2000 Professional.

I find that the client browser just doesn't play any role other than rendering the page in HTML & the server does all the work. Even the various HTML/Web controls are validated by the server. So ASP.NET relying so much on the server to do even a small task - doesn't this put extra load on the server & in the process,slow down the retrieval time of ASPX pages? A Form can easily be validated using a client-side script like JavaScript (wherein the server has no idea of those validations). Now since the onus of validating the different Form fields is on the client, the result is instantaneous. For e.g. if a user submits a Form without providing his name, an alert message box will get generated at once telling him to enter his name. This not only will ensure that the client needn't "talk" to the server every now and then & increase the workload on the server which may be catering to hundreds of requests at that time but also will minimize users' time during the transaction. Or is it something like the benefits of ASP.NET far outweigh its drawbacks & deficiencies?

The validation part is just an example I have cited.

Thanks,

Arpan
Nov 18 '05 #3
If the user turns off JavaScript, they may as well forget about an ASP.Net
web site. It just won't work properly. ASP.Net relies upon JavaScript for
far more than form validation. JavaScript is central to the Event model that
ASP.Net uses to connect client-side events to server-side event handlers.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"ampra" <am***@hotmail.com> wrote in message
news:uw**************@TK2MSFTNGP10.phx.gbl...
Arpan,
I important point that comes to my mind is that a lot of users have started
disabling their "enable script to run" option in their browser because
"virus-makers" have exploited that feature to run "hidden" scripts.
In my opinion, a good programming practice would be to use client side
scripting alongwith Server-side validation.

thanks,
ampra
"Arpan" <ar******@hotmail.com> wrote in message
news:OW**************@TK2MSFTNGP14.phx.gbl...
I am a newbie in ASP.NET (using VB.NET) & work on Windows 2000
Professional.

I find that the client browser just doesn't play any role other than
rendering the page in HTML & the server does all the work. Even the various
HTML/Web controls are validated by the server. So ASP.NET relying so much on
the server to do even a small task - doesn't this put extra load on the
server & in the process,slow down the retrieval time of ASPX pages? A Form
can easily be validated using a client-side script like JavaScript (wherein
the server has no idea of those validations). Now since the onus of
validating the different Form fields is on the client, the result is
instantaneous. For e.g. if a user submits a Form without providing his name,
an alert message box will get generated at once telling him to enter his
name. This not only will ensure that the client needn't "talk" to the server
every now and then & increase the workload on the server which may be
catering to hundreds of requests at that time but also will minimize users'
time during the transaction. Or is it something like the benefits of ASP.NET
far outweigh its drawbacks & deficiencies?

The validation part is just an example I have cited.

Thanks,

Arpan
Nov 18 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Marcus | last post by:
Hi all, Quick question about using SSL... I am running PHP/MySQL/Apache, and currently am just using session variables to log users in. Obviously I would like to make this more secure, i.e. in...
5
by: Robin Tucker | last post by:
I'm looking for a simple way of telling (inside a stored procedure) if I'm currently using MSDE or a full SQL server. Ideally, there is some pre-defined environment variable that won't cause me...
2
by: UnixSlaxer | last post by:
Hello, - Is any body aware of a random workload/query generator such as the TPC-H query generator (QGEN) ? I am looking for a query generator that takes a schema as an input, and produces...
0
by: Zorba.GR | last post by:
IBM DB2 Connect Enterprise Edition v8.2, other IBM DB2 (32 bit, 64 bit) (MULTiOS, Windows, Linux, Solaris), IBM iSoft Commerce Suite Server Enterprise v3.2.01, IBM Tivoli Storage Resource Manager...
8
by: cjshea | last post by:
Hi, no point in trying to be eloquent with a question like this. If a client met with me and told me of an application he wants to have changed over to DB2 as a database backend, or perhaps it...
2
by: Jobs | last post by:
Download the JAVA , .NET and SQL Server interview with answers Download the JAVA , .NET and SQL Server interview sheet and rate yourself. This will help you judge yourself are you really worth of...
12
by: Caffiend | last post by:
I've been fooling around with large numbers for a little while, and seeing how slow my laptop is calculating prime numbers above 10^8, have been wishing I had a dedicated machine to crunch numbers......
14
by: Guillermo_Lopez | last post by:
Hello, Our company has developed several Access applications for our clients and we wish to expand to use a database server. We wish to use Access as the front end application and SQL Server...
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...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.