[thelist] if...or...then in asp

David at softv.net David at softv.net
Mon Feb 25 13:34:01 CST 2002


Another nit-pickety sorta thing is that you should always use explicit
object references. If you simply use Request("item"), the ASP engine has to
iterate trough all of the Request object collections till it finds a match,
starting with the Server Variables, which incur a not-trivial performance
hit. Use:

Request.Form("item")
Request.QueryString("item")
Etc...

It also makes your code more "self-documenting"

<%
David Mitchell
Web/Software Developer
david at sofTV.net
sofTV.net
www.sofTV.net
613.729.6400 x268
%>




More information about the thelist mailing list