Prestwood eMag
Our monthly opt-in coupons+newsletter.
|
portal.prestwood.com
|
|
February 2013 - ASP Classic Edition
|
Year 15 Issue 2
|
|
|
|
Your full service technology partner!
|
|
Expert guidance from working professionals!
Company Info topic:
Prestwood IT Social Networking Strategy by Mike Prestwood
Social networking is a bit confusing! Emailing and calling are still the standards. Is faxing still ok? What about Facebook? Do I friend someone or become a fan of their fan page? Wait, what happened to fan pages? Are they now Facebook pages? What about Facebook groups? What about LinkedIn, YouTube, Twitter, MySpace, and others?
The following articles are posted to the PrestwoodBoards knowledge base:
The Prestwood Strategy: Although we still prefer phone calls and email, we do use social media to reach out. Our primary form of social networking is not with our clients, but with fellow IT professionals at PrestwoodBoards.com. Use the link above to learn more including how to interact with Prestwood IT, our other websites and groups, and our staff including Mike Prestwood.
For more information see...
Role-Based Tech Talk topic:
Crash, Bomb, Hang, and Deadlock by Scott Wehrly
This article explores and defines the following terms: crash, bomb, hang, deadlock, exception, fatal error, and blue screen of death.
American I.T. workforce topic:
Sharpening your skills - A short story by Ramesh R
Here is a short story about a woodcutter and his job. From this job, we have lot of learnings that implies to our career and sharpening our skills. Such examples in life are very important for shaping our career. Enjoy the short story.
ASP Classic topic (classic post):
ASP Classic Empty String Check (Len(s&vbNullString)) by Mike Prestwood
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.
|
Monthly ASP Classic Lesson
|
|
Language Details Topic:
Code Snippet of the Month
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")
Dim StateList
set StateList = Server.CreateObject("Scripting.Dictionary")
StateList.Add "CA", "California"
StateList.Add "NV", "Nevada"
Response.Write "I live in " & StateList.Item("CA")
ASP Classic Topic:
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.
ASP Classic Topic:
Question: What does VBScript stand for?
Answer: VBScript is short for Visual Basic Scripting. VBScript brings scripting to a wide variety of environments, including Web client scripting in Microsoft Internet Explorer and Web server scripting in Microsoft Internet Information Service. It is used in Visual Basic, Access, Word, Excel, ASP, etc.
Language Basics Topic:
Tip of the Month
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.
|
|
|