Prestwood eMag
Our monthly opt-in coupons+newsletter.
|
portal.prestwood.com
|
|
March 2010 - ASP Classic Edition
|
Year 12 Issue 3
|
|
|
|
Your full service technology partner!
|
|
From The Editor
Mike Prestwood
|
This edition, March 2010, is coming out late in the month. I held up sending it because we are trying to improve layout and content of our monthly eMag. Our goal is to deliver a better free product to you. We appreciate you subscribing and we want to make sure our eMag is of interest to you and contains useful information and links. You'll notice this month's eMag has a simpler look and feel to it and you'll see many more improvements like this over the next few months.
We also know that our servers lately have, at times, been slow. Right now we are migrating to our viaVerio hosting farm (same servers we use with our PrestwoodHosting.com hosting clients). We will be moving in the next month or so to a new server. Until then, thank you for putting up with our occasionally slow website.
Again, thank you for subscribing to our monthly eMag.
--Mike Prestwood
Expert guidance from working professionals!
Ramesh R
|
General, Getting Started, etc. topic:
Critical Thinking in technical writing
by Ramesh R
Critical Thinking skills comes automatically as a writer becomes experienced over a period of time. Learning to write and transforming the ideas into writing help develop critical thinking aspects/skills. A clear set of phases/activities are inititated in the human brain as part of critical thinking. This article helps to understand the learning basics, learning process and the impact of writing that drives critical thinking skills. This is a good read for all our technical writing friends across the globe.
Language Basics topic (classic post):
Read/Write from ASP to create a page from template by Kim Berry
The Scripting object provides reading and writing of files. By adding a string replace in each line, ASP content can reside in a DB and inserted into the desired template.
|
Monthly ASP Classic Lesson
|
|
ASP Classic Topic:
Code Snippet of the Month
In ASP, using ADO, you use RecordSet.AddNew to add a new record, Recordset.Update to post the record, and RecordSet.Delete to delete it. To edit a record, you open the RecordSet using an editable cursor.
The following code snippet adds a record to a given editable RecordSet with FullName and Created fields:
objRS.AddNew
objRS.Fields("FullName") = "Barack Obama"
objRS.Fields("Created") = Now
objRS.Update
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.
|
|
|