Prestwood eMag
Our monthly opt-in coupons+newsletter.
|
portal.prestwood.com
|
|
February 2010 - ASP Classic Edition
|
Year 12 Issue 2
|
|
|
|
Your full service technology partner!
|
|
Expert guidance from working professionals!
IT Water-Cooler for Power-Users topic:
Windows GREP - Great Tool by Wes Peterson
You know (or think) the file is out there. You have a pretty good idea about one or two things that are (or ought) to be in it. Find it fast with Windows GREP.
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.
|
Monthly ASP Classic Lesson
|
|
OOP Topic:
Code Snippet of the Month
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.
Class Cyborg
Public Sub Class_Terminate
Response.Write "<br>Class destroyed"
End Sub
End Class
ASP Classic Topic:
Run ASP pages on Linux/Unix! This software was originally developed by ChiliSoft.
Sun Java System Active Server Pages software allows organizations to deploy Active Server Pages (ASP)-based web applications on a variety of web servers and operating systems. ASP applications currently supported by Microsoft IIS can now be powered by the Java System Web Server for increased security. Legacy ASP applications running on Windows NT can be transitioned to the Solaris Operating System for ongoing maintenance and support.
ASP Classic Topic:
Question: How do you find last Monday? I want to return a date for last Monday or today if today is Monday.
Answer:
While Weekday(ADate) <> vbMonday
ADate = DateAdd("d", -1, ADate)
WEnd
You could wrap this up in a function as follows:
Function SU_GetLastDOW(ADate, AWeekDayConst)
While Weekday(ADate) <> AWeekDayConst
ADate = DateAdd("d", -1, ADate)
WEnd
SU_GetLastDOW = ADate
End Function
Language Details Topic:
Tip of the Month
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
|
|
|