Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 13th, 2003, 07:37 AM
Friend of Wrox
Join Date: Oct 2003
Posts: 336
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alyeng2000
Default what is the best to do, better performance

for example if i have to reset some fields texts, i could do that using either vb code or jscript, but it is easiest to do using the vb code

Ahmed Ali
Software Developer
Ahmed Ali
Senior Software Developer
Old December 13th, 2003, 07:56 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

It depends on how you implement it. If you send the necessary JavaScript to the browser on the first hit, that will be much faster. The code will execute at the client, so there is no need for a round trip, saving time and bandwidth.

If you are posting back to the server, you'll need to clear the fields there with VB and then send the empty form fields back to server. The advantage of this solution is that you have a bit more control over what is cleared, how, why and whether it's allowed or not, although you can accomplish all these things with JavaScript as well.

IMO, "easier" is not always the best reason to choose for a certain solution. You'll need to keep your user in mind and find out what they think is easiest for them.....


Imar Spaanjaars
Everyone is unique, except for me.

Similar Threads
Thread Thread Starter Forum Replies Last Post
Performance prasanta2expert SQL Server 2000 6 December 15th, 2006 10:38 PM
Performance prasanta2expert ASP.NET 1.0 and 1.1 Basics 0 December 4th, 2006 04:24 AM
Query Performance pilmart Access ASP 0 April 22nd, 2004 07:16 AM
Table Performance mikericc Access 10 February 17th, 2004 02:39 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.