Prestwood eMag
Our monthly opt-in coupons+newsletter.
|
portal.prestwood.com
|
|
March 2011 - ASP Classic Edition
|
Year 13 Issue 3
|
|
|
|
Your full service technology partner!
|
|
From The Editor
Mike Prestwood
|
Happy New Year! ...what?
This month we start sending our monthly eMag again! We skipped Jan/Feb while we revamped our newsletter approach to further support the separating of Prestwood IT (the business) from our online community for I.T. professionals. Now our eMag features content exclusively from our online community. Optionally, you can add our business content to your eMag but the content is turned off by default.
Expert guidance from working professionals!
IT Water-Cooler for Power-Users topic:
Stamp Out Spam by Vicki Nelson
How to fight back against spam and reclaim your inbox. As you may know, the volume of spam messages sent across the Internet
has reached epidemic levels. Some industry experts estimate that three
out of every five e-mail messages that are sent today are spam. The spam
epidemic is costing companies, professionals, and individual users
considerable amounts of time, money, and resources.
What is spam, and what can I do about it? Spam
is generally defined as an unsolicited mailing, usually sent to many
recipients. Most spam is commercial advertising, often for dubious
products, get-rich-quick schemes, or quasi-legal services. Spam costs
the sender very little to send. Most of the costs are paid by the
recipient or the carriers rather than the sender. Some effective methods
for preventing your e-mail address from being captured, sold or abused
by spammers in the full version of this article. Click the title to read more.
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.
Off Shoring topic:
Off-shoring: You CAN fight back! by Wes Peterson
Are you fed up with calling a company and finding yourself speaking to somebody in a foreign country?
I am, and I've just learned of an effective way to fight back, help return jobs to America, and keep them here.
The best part? We don't have to wait for government to do a thing.
OOP topic (classic post):
ASP Classic Destructor (Class_Terminate) by Mike Prestwood
When an object instance is destroyed, ASP calls a special parameter-less sub named Class_Terminate. For example, when the variable falls out of scope. Since you cannot specify parameters for this sub, you also cannot overload it.
When an object instance is created from a class, ASP calls a special sub called Class_Initialize.
|
Monthly ASP Classic Lesson
|
|
Tool Basics Topic:
Code Snippet of the Month
This is a simple example of passing a value to a JavaScript function. You can pass values to JavaScript the same way you pass values to HTML.
<% Dim MyName MyName = "Mr Paradiddle" %> <script language="javascript"> <!-- function ShowYourName() { document.write('Your name is <%=MyName%>.') }
ShowYourName() --> </script>
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.
|
|
|