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

Advanced
-Collapse +Expand ASP Classic Store

Prestwood eMagazine

October Edition
Subscribe now! It's Free!
Enter your email:

   ► eMag   Print This    All Groups  
View Group Edition:
Full Edition Your Edition || Prev Next || Subscription Center

eMag Jul 2012 Issue - ASP Classic Edition

Subscribe!

Start subscribing now! It's free!

Each month on or after the 1st, and only once a month, we will send you content from up to 5 community groups. If you select this ASP Classic group, you'll receive the following content below mixed in with the other groups you elect to include.

Prestwood eMag
Message Boards
PrestwoodBoards.com
  July 2012 - ASP Classic Edition Year 14 Issue 7  
I.T. Discussion Community!


Expert guidance from working professionals!
Prestwood IT Events topic:
Prestwood IT @ Golf Tournament, 2nd Year!

On Monday August 20th, Prestwood IT sponsored a tee at the Annual Past Chair's Golf Tournament which is put on by the Citrus Heights and Fair Oaks chambers. If you golf and missed this event, you missed a gorgeous day!


Prestwood IT Events topic:
Prestwood IT at Downtown Loomis Thursday Night Family Fest 2012

It was an enjoyable time meeting new people and letting them know about our services at this year's Downtown Loomis Thursday Night Family Fest! 


Help Wanted! topic:
Contribute To The Prestwood Community
by Mike Prestwood
We are always looking for talented developers to participate in our message boards, post articles, etc.

IT Water-Cooler for Power-Users topic:
Top 10 Things That Annoy Programmers
by Wes Peterson
http://www.kevinwilliampang.com/2008/08/28/top-10-things-that-annoy-programmers/





 ASP Classic Group Top 
Visit Group | My Group Settings
Language Basics topic (classic post):
Send email with ASPMail
by Mike Prestwood

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


 Monthly ASP Classic Lesson
Language Basics Topic:
Code Snippet of the Month
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:

Function GetRandomInt(LowNumber, HighNumber)
RANDOMIZE
GetRandomInt = Round(((HighNumber-1) - LowNumber+1) * Rnd+LowNumber)
End Function

Response.Write GetRandomInt(10, 100)

ASP Classic Topic:
Documented Error of the Month: ASP Classic error 0208 : 80004005 (Generic request collection)
Error: error 'ASP 0208 : 80004005' Cannot use generic Request collection /_private/footer_content.inc, line 72 Cannot use the generic Request collection after calling BinaryRead.
Explanation:

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. The generic request collection causes problems in some circumstances. For example, you cannot call the generic request collection after a BinaryRead.

ASP Classic Topic:
Resource Link of the Month: VBScript Language Reference on Microsoft.com
The best resource for quickly looking up ASP Classic commands. Even better than having a reference book.
Language Details Topic:
Question:

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


Answer:

Use a dictionary:

Dim StateList
 
set StateList = Server.CreateObject("Scripting.Dictionary")

StateList.Add "CA", "California"
 
Response.Write "NV is " & StateList("NV")

For more examples, refer to our ASP Classic Associative Array (Scripting.Dictionary) article.

Language Details Topic:
Tip of the Month
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.



Follow PrestwoodBoards on: 


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