| |
KB Article |
|
|
Mike Prestwood
|
1. 4 Guys from Rolla
http://www.4guysfromrolla.com/
|
 Link
 1830 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
2. A 10 Minute ASP Classic Quick Start
An example of using ASP's Response.Write and creating functions.
|
 Article
 5504 Hits
|
 ASP Classic Coding
|
Kim Berry
|
3. ADO Objects must be explicitly closed
Setting ADO objects to Nothing without first closing them might cause ASPMail to fail
|
 KB Post
 1893 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
4. ASP and ADO Coding Practices
ASP and ADO coding best practices.
|
 KB Post
 2195 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
5. ASP Application.Lock Method
Call Application.Lock to freeze ASP code while you set IIS application variables the Application.Unlock to unfreeze. No actions take place on the server while locked. Application.Lock
Application(YourAppVar) = AValue Application.Unlock
7 years ago, and updated 52 months ago
|
 Tip
 4910 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
6. ASP Classic Array (x = Array())
Arrays in ASP Classic use a 0-based indice.
Use UBound to get the number of elements. UBound returns -1 if the array has no elements, 0 if it has 1, 1 if it has 2, etc.
38 months ago, and updated 26 months ago
|
 Code |
 KB Post |
4737 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
7. ASP Classic Assignment (=)
ASP Classic uses = for it's assignment operator.
55 months ago, and updated 54 months ago
|
 Code
 2078 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
8. ASP Classic Associative Array (Scripting.Dictionary)
Use the scriptiing dictionary object which is available on later versions of ASP Classic (all still commonly in use). Both Access VBA and VB Classic use a collection for this but collections are not supported in ASP Classic. Dim StateList Set StateList = Server.CreateObject("Scripting.Dictionary") StateList.Add "CA", "California" StateList.Add "NV", "Nevada" Response.Write "I live in " & StateList.Item("CA")
53 months ago, and updated 52 months ago
|
 Code |
 KB Post |
 10625 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
9. ASP Classic Case Sensitivity (No)
ASP Classic is not case sensitive. My preference for all languages where case sensitivity does not matter is to use camel caps as in the first example above. Many developers coming from a case sensitive language prefer to use all lowercase.
55 months ago, and updated 52 months ago
|
 Code
4065 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
10. ASP Classic Class..Object (Class..Set..New)
Ultra-primitive (no inheritance) but useful and encourages you to think and design using objects.
55 months ago, and updated 52 months ago
|
 Code |
 KB Post |
 2977 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
11. ASP Classic Code Blocks (End Xxx)
In .ASPhtml pages, you embed ASP code between <% and %>.
ASP Classic code blocks are surrounded by statement ending keywords that all use End such as End Sub, End If, and WEnd.
54 months ago, and updated 52 months ago
|
 Code
 2230 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
12. ASP Classic Comments (' or REM)
Commenting Code ASP Classic, like all the VB-based languages, uses a single quote (') or the original class-style basic "REM" (most developers just use a quote). ASP Classic does NOT have a multiple line comment.
Preprocessor Directives - @ and # An @ is used for preprocessor directives within ASP code (within <% %>) and a # is used for HTML-style preprocessor directives.
Note: ASP Classic does not support VB Classic's #If directive.
54 months ago, and updated 52 months ago
(2 Comments
, last by Anonymous )
|
 Code
 12862 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
13. ASP Classic Comparison Operators (=, <>)
54 months ago, and updated 43 months ago
|
 Code |
 KB Post |
 4460 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
14. ASP Classic Constants (Const kPI = 3.1459)
Scope can be Public or Private. Public Const is the same as just specifying Const. As with variables, all constants are variants. You do not specify the type, it's implied.
53 months ago, and updated 52 months ago
|
 Code
 3285 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
15. ASP Classic Constructors (Class_Initialize)
When an object instance is created from a class, ASP calls a special parameter-less sub named Class_Initialize. Since you cannot specify parameters for this sub, you also cannot overload it.
When a class is destroyed, ASP calls a special sub called Class_Terminate.
52 months ago, and updated 52 months ago
|
 Code |
 KB Post |
8762 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
16. ASP Classic Custom Routines (Sub, Function)
ASP Classic is a non-OOP language with some OOP features. It offers both Subs and Functions. A Sub does not return a value while a Function does. When Subs and Functions are used in a defined class, they become the methods of the class.
54 months ago, and updated 53 months ago
|
 Code
 6050 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
17. ASP Classic Deployment Overview
With ASP Classic, you simply copy your files to a web server that is capable of running ASP pages. This includes your .ASP pages along with supporting files such as images, include files, and database files.
Optionally, you can also deploy a global.asa file which is used to code certain events like application start, application end, session start, and session end.
|
 Code
 2516 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
18. ASP Classic Destructor (Class_Terminate)
When an object instance is destroyed, ASP calls a special parameter-less sub named Class_Terminate. For example, when the variable falls out of scope. Since you cannot specify parameters for this sub, you also cannot overload it.
When an object instance is created from a class, ASP calls a special sub called Class_Initialize.
52 months ago, and updated 52 months ago
|
 Code |
 KB Post |
4964 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
19. ASP Classic Development Tools
Languages Focus: Development ToolsPrimary development tool(s) used to develop and debug code.
ASP Classic Development ToolsMicrosoft Visual Interdev was popular for several years but isn't used as much any more. Any good editor such as Microsoft Expression Web, etc. will work but debugging is left up to interactive skills.
54 months ago, and updated 52 months ago
|
 Code
 2311 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
20. ASP Classic Edit Record (AddNew, Update, Delete)
In ASP, using ADO, you use RecordSet.AddNew to add a new record, Recordset.Update to post the record, and RecordSet.Delete to delete it. To edit a record, you open the RecordSet using an editable cursor.
|
 Code
 5740 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
21. ASP Classic Empty String Check (Len(s&vbNullString))
In ASP Classic, you have to add an empty string to the value being compared in order to get consistent results. For example, add &"" to your string varilable or it's code equivalent &vbNullString. Then compare to an empty string or verify it's length to 0 with Len.
44 months ago, and updated 32 months ago
(3 Comments
, last by Anonymous )
|
 Code |
 Article |
9788 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
22. ASP Classic End of Statement (Return)
Languages Focus: End of StatementIn coding languages, common End of statement specifiers include a semicolon and return (others exist too). Also of concern when studying a language is can you put two statements on a single code line and can you break a single statement into two or more code lines.
ASP Classic End of StatementA return marks the end of a statement and you cannot combine statements on a single line of code. You can break a single statement into two or more code lines by using a space and underscore " _".
53 months ago, and updated 52 months ago
|
 Code
 2540 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
23. ASP Classic error 0208 : 80004005 (Generic request collection)
error 'ASP 0208 : 80004005'
Cannot use generic Request collection
/_private/footer_content.inc, line 72
Cannot use the generic Request collection after calling BinaryRead.
6 years ago, and updated 6 years ago
|
 Error
 5025 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
24. ASP Classic Error 3709
Run-time error '3709': Operation is not allowed on an object referencing a closed or invalid connection.
|
 Error
 4811 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
25. ASP Classic Exception Trapping (On Error)
Languages Focus: Exception TrappingA common usage of exception handling is to obtain and use resources in a "try-it" block, deal with any exceptions in an "exceptions" block, and release the resources in some kind of "final" block which executes whether or not any exceptions are trapped. ASP Classic Exception Trapping
55 months ago, and updated 54 months ago
|
 Code
 3023 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
26. ASP Classic File Extensions (.ASP)
.asp is the default extension for Active Server Pages (ASP) although some developers will change the default extension in an effort to add an additional security level. Although there is no clear standard for include files, using .INC is common but you must make sure that .INC files are not executed nor displayed.
55 months ago, and updated 52 months ago
|
 Code
 2099 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
27. ASP Classic Filter Records (Filter)
In ASP, using ADO, you filter a set of records using Filter.
|
 Code
 2580 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
28. ASP Classic Find Record (Find, Seek)
In ASP, using ADO, you use Find and Seek to move a cursor of a RecordSet to a matching record.
|
 Code
 2220 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
29. ASP Classic If Statement (If..ElseIf..Else..End If)
The End If is optional if you put your code on a single line.
53 months ago, and updated 50 months ago
|
 Code |
 KB Post |
 12383 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
30. ASP Classic Inheritance (Not Supported)
The concept of a class makes it possible to define subclasses that share some or all of the main class characteristics. This is called inheritance. Inheritance also allows you to reuse code more efficiently. In a class tree, inheritance is used to design classes vertically. (You can use Interfaces to design classes horizontally within a class tree.) With inheritance, you are defining an "is-a" relationship (i.e. a chow is-a dog). Analysts using UML call this generalization where you generalize specific classes into general parent classes. ASP Classic Inheritance
55 months ago, and updated 52 months ago
|
 Code
 2475 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
31. ASP Classic Interfaces (Not Supported)
Although ASP Classic does support simple classes, it does not support interfaces.
55 months ago, and updated 52 months ago
|
 Code
 2389 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
32. ASP Classic Left
ASP Classic Left
|
 Code
 2473 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
33. ASP Classic Literals (quote)
Literals are quoted as in "Prestwood". If you need to embed a quote use two quotes in a row.
54 months ago, and updated 52 months ago
|
 Code
 3426 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
34. ASP Classic Logical Operators (and, or, not)
Same as VB. ASP Classic logical operators:
| and |
and, as in this and that |
| or |
or, as in this or that |
| Not |
Not, as in Not This |
51 months ago, and updated 44 months ago
|
 Code |
 KB Post |
4753 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
35. ASP Classic Member Field
ASP Classic does support member fields, but, as usual, you cannot initialize the type nor value of a member field. The type is implied by usage.
53 months ago, and updated 52 months ago
|
 Code
 2776 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
36. ASP Classic Member Method (Sub, Function)
ASP classic uses the keywords sub and function. A sub does not return a value and a function does. Many programmers like to use the optional call keyword when calling a sub to indicate the call is to a procedure.
53 months ago, and updated 52 months ago
|
 Code
 3360 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
37. ASP Classic Member Modifiers (Default)
Other than visibility modifiers Public and Private, the only other member modifier available in ASP Classic is Default which is used only with the Public keyword in a class block. It indicates that the sub, function, or property is the default method for the class. You can have only one Default per class.
|
 Code
 2917 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
38. ASP Classic Member Property (Property..Get..Let)
ASP classic uses the property keyword and special Get and Let methods to both get and set the values of properties.
53 months ago, and updated 52 months ago
|
 Code |
 KB Post |
 3659 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
39. ASP Classic Member Visibility (Private, Public)
The member visibility modifiers are Private and Public. If not specified, the default is Public. Private and Public have the usual meaning. Private members are visible only within the class block. Public members are visible within the class and outside of the class.
|
 Code |
 Article |
 3691 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
40. ASP Classic Overloading (Not Supported)
ASP Classic does not support any type of overloading.
- Operator - No.
- Method - No.
Some developers like to pass in an array and then handle the array for a pseudo technique. Although not overloading, it's useful.
55 months ago, and updated 52 months ago
|
 Code
 3462 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
41. ASP Classic Overview and History
Language Overview: Class-based language. Although you can create classes, ASP is not fully OOP. It is a traditional language with a few OOP extensions. You code in a traditional approach using functions, procedures, and global data, and you can make use of simple classes to help organize your reusable code.
Target Platforms: ASP Classic is most suitable for creating websites targeting any browser (IIS Web Server with ASP Classic installed or equivalent).
53 months ago, and updated 52 months ago
|
 Code
 2703 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
42. ASP Classic Parameters (ByRef, ByVal)
By Reference or Value For parameters, you can optionally specify ByVal or ByRef. ByRef is the default if you don't specify.
54 months ago, and updated 52 months ago
|
 Code
3888 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
43. ASP Classic Record Movement (MoveFirst, MoveLast, MoveNext)
ASP uses MoveFirst, MoveLast, MoveNext, and MovePrevious to move a database cursor (a RecordSet). objRecordSet.MoveNext
|
 Code
 5421 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
44. ASP Classic Report Tools Overview
Because ASP Classic targets a client browser (a document interfaced GUI), a common solution is to simply output an HTML formatted page with black text and a white background (not much control but it does work for some situations).
54 months ago, and updated 53 months ago
|
 Code
 3825 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
45. ASP Classic Self Keyword (me)
Same as VB. The Me keyword is a built-in variable that refers to the class where the code is executing.
|
 Code
 3408 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
46. ASP Classic Sort Records (Sort)
In ASP, using ADO, you sort a set of records using the Sort property.
|
 Code
 2368 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
47. ASP Classic Static Members (Not Supported)
Although ASP Classic supports the creation of simple classes, it does not support static methods.
55 months ago, and updated 51 months ago
|
 Code
 3160 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
48. ASP Classic String Concatenation (& or +)
Although you can use either a & or a + to concatenate values, my preference is to use a + because more languages use it. However, if you use & then some type conversions are done for you. If you use + you will sometimes have to cast a value to concatenate it. For example, you will have to use CStr to cast a number to a string if you use the + operator as a concatenation operator.
54 months ago, and updated 52 months ago
|
 Code
 2850 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
49. ASP Classic Unary Operators
An operation with only one operand (a single input) such as + and -.
54 months ago, and updated 51 months ago
|
 Code
 2613 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
50. ASP Classic Variables (Dim x)
ASP Classic is a loosely typed language. No variable types in ASP (all variables are variants). Declaring variables is even optional unless you use the Option Explicit statement to force explicit declaration of all variables with Dim in that script. Using Option Explicit is strongly recommended to avoid incorrectly typing an existing variable and to avoid any confusion about variable scope.
For example, at the top of my common include file, I have the following:
<%@LANGUAGE=VBScript%> <% Option Explicit '...more code here. %>
54 months ago, and updated 51 months ago
|
 Code
 2817 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
51. ASP Classic Yes/No Function
The following function demonstrates one technique for coding a Yes/No dropdown. It uses a for loop which can be expanded to handle more than the 3 states (Y, N, and blank).
Example of calling the function: Do you fish? <%=YesNoDropDown("ynFish", "")%>
|
 Code
 2294 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
52. ASP Constant Naming Convention
When naming constants, Microsoft suggests you prefix each constant with "con" as in conYourConstant. Although, they also say the older all caps with words separated by an underscore is still acceptable (i.e. YOUR_CONSTANT).
5 years ago, and updated 53 months ago
|
 Tip
 2770 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
53. ASP redirect http to https
To redirect from http to https, check the Request.ServerVariables HTTPS field and then use Response.Redirect if set to "off".
9 years ago, and updated 43 months ago
|
 Code
 2838 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
54. ASPSuite Developers Blog
Developer blog journal for our ASPSuite product. This blog is intended for the Prestwood ASP Classic developers.
7 years ago, and updated 6 years ago
, last by mprestwood )
|
 Blog
 4122 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
55. Associative Arrays in ASP Classic
What is the syntax in ASP Classic for using an associative array?
59 months ago, and updated 30 months ago
(1 Comments
)
|
 FAQ
 9650 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
56. Buffer a RecordSet in an application variable
In ASP, you can buffer a RecordSet in either a session or application variable. This code snippet shows you how to create a reusable method for buffering RecordSets in an application variable.
7 years ago, and updated 6 years ago
|
 KB Post
 2882 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
57. Can ASP edit Access/SQL views?
Can you edit Access and MS SQL Server views?
|
 FAQ
 2695 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
58. CBool(ANumber Mod 2)
The following function returns true if the integer portion of a number passed in is odd; otherwise, it returns false.
|
 Code
 2502 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
59. CDO (Collaboration Data Objects)
Using CDO to send email.
|
 KB Post
 2025 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
60. Clear Application and Session Variables Using ASP classic
Use Application.Contents.RemoveAll and Session.Contents.RemoveAll
6 years ago, and updated 36 months ago
|
 KB Post
 12283 Hits
|
 ASP Classic Coding
|
Adam Lum
|
61. Creating a Class in ASP
Create a basic Class in ASP
7 years ago, and updated 55 months ago
|
 KB Post
 2899 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
62. DateDiff vbMonday ww Week of Year
This code returns the current week of the current year with a week starting on Monday.
|
 Code
 5806 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
63. error '80020009'
error '80020009'
YourPage.asp, line xxxx
5 years ago, and updated 5 years ago
|
 Error
 4266 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
64. Find Last Day of Week
How do you find last Monday? I want to return a date for last Monday or today if today is Monday.
6 years ago, and updated 52 months ago
|
 FAQ
 4011 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
65. Get Browser Width
Many users these days have very wide screens. This article shows you how to determine the browser width using ASP classic.
55 months ago, and updated 54 months ago
|
 KB Post
 3281 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
66. Get Count of Field Types in a Table
Code sample to get a count of the number of fields in a table of a particular field type (a particular DataTypeEnum).
|
 KB Post
 2474 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
67. Get GMT Server Offset
You can use JavaScript to set an IIS App var to the GMT server difference. Then use that number in your code.
(1 Comments
)
|
 KB Post
 8594 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
68. GetStringCount with Split and UBound
This function uses Split to count the number of strings within a string.
5 years ago, and updated 55 months ago
|
 Code
 3764 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
70. How do I determine which version of IIS I am running?
The following ASP Classic code displays the version of the Internet Information Services (IIS) you are running in the form of a text string (i.e. Microsoft-IIS/6.0).
|
 Code
 1923 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
71. If Statement: No Short Circuit
Short-circuit evaluation is a feature of most languages where once an evaluation evaluates to False, the compiler evaluates the whole expression to False, exits and moves on to the next code execution line. The ASP Classic if statement does not support short-circuit evaluation but you can mimic it. Use either an if..else if..else if statement or nested if statements. ASP code that makes use of this technique is frequenlty clearer and easier to maintain than the short-circuit equivalent.
53 months ago, and updated 52 months ago
|
 Tip
4478 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
72. Loop Through Form Fields Code Snippet
This code snippet shows you how to loop through a form's fields.
7 years ago, and updated 7 years ago
|
 KB Post
 2596 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
73. Random Numbers with Rnd and Randomize
Call randomize then call Rnd to generate a random number between 0 and 1.
6 years ago, and updated 5 years ago
|
 KB Post
 3113 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
74. Random Numbers with Rnd and Randomize
Call randomize then call Rnd to generate a random number between 0 and 1. The following generates a random number from the low to high number including the low and high numbers:
6 years ago, and updated 6 years ago
|
 Code
 3454 Hits
|
 ASP Classic Coding
|
Kim Berry
|
75. Read/Write from ASP to create a page from template
The Scripting object provides reading and writing of files. By adding a string replace in each line, ASP content can reside in a DB and inserted into the desired template.
11 years ago, and updated 53 months ago
|
 KB Post
 2353 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
76. RecordSet Properties, Methods, and Events
Using a RecordSet's properties, methods and events.
|
 KB Post
 2976 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
77. Response.Flush and Response.Buffer
Response.Flush sends the contents of the buffer to the browser. This command is useful for showing a visitor something while slow loading pages load.
7 years ago, and updated 37 months ago
|
 KB Post
 15655 Hits
|
 ASP Classic Coding
|
Adam Lum
|
78. Response.Redirect vs. Server.Transfer
A quick comparison.
6 years ago, and updated 52 months ago
|
 KB Post
4852 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
79. Response.Write Assignment Operator
This is a simple example of passing a value to a JavaScript function. You can pass values to JavaScript the same way you pass values to HTML.
|
 Code
 2431 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
80. Scripting.FileSystemObject
The following function uses the FileSystemObject to delete a file.
|
 Code
 2289 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
81. Scripting.FileSystemObject
The following function uses the Scripting.FileSystemObject to check for the existence of a file.
|
 Code
 2145 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
82. Send email with ASPMail
How to use ASPMail to send email from your web site.
10 years ago, and updated 7 years ago
|
 KB Post
 40886 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
83. Setting to null or empty and checking
Use IsEmpty or Len > 0 to test
When clearing, set to Null (not "")
10 years ago, and updated 6 years ago
|
 KB Post
 2594 Hits
|
 ASP Classic Coding
|
Adam Lum
|
84. Setting up your Web Server to Run ASP Scripts
Running ASP on IIS
|
 KB Post
 2231 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
85. Sun Java System Active Server Pages
Run ASP pages on Linux/Unix! This software was originally developed by ChiliSoft.
|
 Download
 4159 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
86. Using On Error Resume Next
You can use "On Error Resume Next" to suppress errors and "On Error Goto 0" to stop suppressing errors.
7 years ago, and updated 58 months ago
(2 Comments
, last by mprestwood )
|
 KB Post
 9826 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
87. Using Request.QueryString
Although you can use the generic request collection, as in Request("SomeValue"), for either Request.Form("SomeValue") or Request.QueryString("SomeValue"), it's best to avoid the generic request collection until it's really needed. Use a For Each loop to loop through elements.
6 years ago, and updated 53 months ago
|
 Tip
 4532 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
88. VBScript
What does VBScript stand for?
|
 FAQ
 2264 Hits
|
 ASP Classic Coding
|
Mike Prestwood
|
90. Weekday and WeekdayName
Use Weekday and WeekdayName to return the day of week in ASP.
|
 KB Post
 2628 Hits
|
 ASP Classic Coding
|