I.T. Discussion Community!
-Collapse +Expand
ASP Classic
Search ASP Classic Group:

Advanced
-Collapse +Expand ASP Classic Store
   ► KBWebsite Scri...ASP ClassicLanguage Basics   Print This     

ASP Classic KB: Language Basics Topic



21 Articles Found in the Language Basics Topic 

  KB Article    

Mike Prestwood
1. 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.

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
7494
Hits

ASP Classic Coding

Mike Prestwood
2. ASP Classic If Statement (If..ElseIf..Else..End If)

The End If is optional if you put your code on a single line.

10 years ago, and updated 9 years ago
(2 Comments , last by Jacob.l )

Code

KB Post
Nothing New Since Your Last Visit
29134
Hits

ASP Classic Coding

Mike Prestwood
3. ASP Classic Left

ASP Classic Left

10 years ago

Code
Nothing New Since Your Last Visit
5795
Hits

ASP Classic Coding

Mike Prestwood
4. 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

9 years ago, and updated 9 years ago
(4 Comments , last by Chatlie.m )

Code

KB Post
Nothing New Since Your Last Visit  
21358
Hits

ASP Classic Coding

Mike Prestwood
5. 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".

14 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
8439
Hits

ASP Classic Coding

Mike Prestwood
6. 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.
12 years ago, and updated 11 years ago

KB Post
Nothing New Since Your Last Visit
8404
Hits

ASP Classic Coding

Mike Prestwood
7. CBool(ANumber Mod 2) The following function returns true if the integer portion of a number passed in is odd; otherwise, it returns false.
10 years ago

Code
Nothing New Since Your Last Visit
5581
Hits

ASP Classic Coding

Mike Prestwood
8. Clear Application and Session Variables Using ASP classic

Use Application.Contents.RemoveAll and Session.Contents.RemoveAll

11 years ago, and updated 8 years ago
(1 Comments , last by Uwais.Q )

KB Post
Nothing New Since Your Last Visit
31771
Hits

ASP Classic Coding

Mike Prestwood
9. Get Browser Width Many users these days have very wide screens. This article shows you how to determine the browser width using ASP classic.
10 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
8985
Hits

ASP Classic Coding

Mike Prestwood
10. 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).
12 years ago

KB Post
Nothing New Since Your Last Visit
7606
Hits

ASP Classic Coding

Mike Prestwood
11. 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.
11 years ago
(2 Comments , last by Muhammad.Z )

KB Post
Nothing New Since Your Last Visit
19666
Hits

ASP Classic Coding

Mike Prestwood
12. GetStringCount with Split and UBound

This function uses Split to count the number of strings within a string.

10 years ago, and updated 10 years ago
(1 Comments , last by Uwais.Q )

Code
Nothing New Since Your Last Visit
9667
Hits

ASP Classic Coding

Mike Prestwood
13. 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.

10 years ago, and updated 9 years ago

Tip
Nothing New Since Your Last Visit  
18529
Hits

ASP Classic Coding

Mike Prestwood
14. Loop Through Form Fields Code Snippet This code snippet shows you how to loop through a form's fields.
12 years ago, and updated 12 years ago
(1 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
5986
Hits

ASP Classic Coding

Mike Prestwood
15. Random Numbers with Rnd and Randomize Call randomize then call Rnd to generate a random number between 0 and 1.
11 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
7844
Hits

ASP Classic Coding

Mike Prestwood
16. 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:
11 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
8754
Hits

ASP Classic Coding

Kim Berry
17. 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.
16 years ago, and updated 10 years ago

KB Post
Nothing New Since Your Last Visit
5608
Hits

ASP Classic Coding

Mike Prestwood
18. Scripting.FileSystemObject The following function uses the FileSystemObject to delete a file.
10 years ago

Code
Nothing New Since Your Last Visit
4904
Hits

ASP Classic Coding

Mike Prestwood
19. Scripting.FileSystemObject The following function uses the Scripting.FileSystemObject to check for the existence of a file.
10 years ago
(1 Comments , last by joseph.m2 )

Code
Nothing New Since Your Last Visit
5101
Hits

ASP Classic Coding

Mike Prestwood
20. Send email with ASPMail

How to use ASPMail to send email from your web site.

15 years ago, and updated 12 years ago
(1 Comments , last by Anonymous )

KB Post
Nothing New Since Your Last Visit
146033
Hits

ASP Classic Coding

Mike Prestwood
21. Using On Error Resume Next You can use "On Error Resume Next" to suppress errors and "On Error Goto 0" to stop suppressing errors.
12 years ago, and updated 10 years ago
(4 Comments , last by Uwais.Q )

KB Post
Nothing New Since Your Last Visit
32822
Hits

ASP Classic Coding

Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New ASP Classic Coding Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  ASP Classic Coding Message Board
-
   Contact Us!
 
PrestwoodBoards.com was developed and is maintainted by me. Do you have a question or suggestion? Do you see a problem? Contact me now. My goal is to build an ad-free and spam-free source of I.T. information with many contributers (ok to promote your website/company in your bio). Yes, my company Prestwood IT Solutions is mentioned in my bio which shows with every post, but you can contribute and promote your pet project too!

1,986 People Online Now!!  
Sign In to see who's online now!  Not a member? Join now. It's free!
Show more stats...


©1995-2018 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech