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

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

ASP Classic KB: Language Details Topic



11 Articles Found in the Language Details Topic 

  KB Article    

Mike Prestwood
1. 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
 
12 years ago, and updated 9 years ago
(2 Comments , last by Uwais.Q )

Tip
Nothing New Since Your Last Visit
13558
Hits

ASP Classic Coding

Mike Prestwood
2. 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")
10 years ago, and updated 9 years ago

Code

KB Post
Nothing New Since Your Last Visit
43113
Hits

ASP Classic Coding

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

10 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
16522
Hits

ASP Classic Coding

Mike Prestwood
4. ASP Classic Error 3709

Run-time error '3709':
Operation is not allowed on an object referencing a closed or invalid connection.

8 years ago
(1 Comments , last by neil.j )

Error
Nothing New Since Your Last Visit
11733
Hits

ASP Classic Coding

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

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
9862
Hits

ASP Classic Coding

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

9 years ago

Code
Nothing New Since Your Last Visit
10072
Hits

ASP Classic Coding

Mike Prestwood
7. Associative Arrays in ASP Classic

What is the syntax in ASP Classic for using an associative array?

10 years ago, and updated 8 years ago
(3 Comments , last by Donnavan.L )

FAQ
Nothing New Since Your Last Visit
25357
Hits

ASP Classic Coding

Mike Prestwood
8. RecordSet Properties, Methods, and Events Using a RecordSet's properties, methods and events.
12 years ago

KB Post
Nothing New Since Your Last Visit
7324
Hits

ASP Classic Coding

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

12 years ago, and updated 8 years ago
(3 Comments , last by Happy.E )

KB Post
Nothing New Since Your Last Visit
35528
Hits

ASP Classic Coding

Mike Prestwood
10. 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.
11 years ago, and updated 10 years ago
(5 Comments , last by Marcia.m )

Tip
Nothing New Since Your Last Visit
13842
Hits

ASP Classic Coding

Mike Prestwood
11. Weekday and WeekdayName Use Weekday and WeekdayName to return the day of week in ASP.
15 years ago

KB Post
Nothing New Since Your Last Visit
7324
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,673 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