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
 
13 years ago, and updated 10 years ago
(2 Comments , last by Uwais.Q )

Tip
Nothing New Since Your Last Visit
15504
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")
11 years ago, and updated 10 years ago

Code

KB Post
Nothing New Since Your Last Visit
46230
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.

11 years ago, and updated 11 years ago

Code
Nothing New Since Your Last Visit
17445
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.

9 years ago
(3 Comments , last by petter.s )

Error
Nothing New Since Your Last Visit
13094
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.

11 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
11077
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.

10 years ago

Code
Nothing New Since Your Last Visit
11530
Hits

ASP Classic Coding

Mike Prestwood
7. Associative Arrays in ASP Classic

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

11 years ago, and updated 9 years ago
(3 Comments , last by Donnavan.L )

FAQ
Nothing New Since Your Last Visit
27729
Hits

ASP Classic Coding

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

KB Post
Nothing New Since Your Last Visit
7968
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.

13 years ago, and updated 9 years ago
(4 Comments , last by Pervez.J )

KB Post
Nothing New Since Your Last Visit
38298
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.
12 years ago, and updated 11 years ago
(5 Comments , last by Marcia.m )

Tip
Nothing New Since Your Last Visit
15778
Hits

ASP Classic Coding

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

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

Follow PrestwoodBoards on: 


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