IT SOLUTIONS
Your full service technology partner! 
-Collapse +Expand
ASP Classic
Search ASP Classic Group:

Advanced
-Collapse +Expand ASP Classic Store

Prestwood eMagazine

January 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

Prestwood IT Newsletter Feb 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
Our monthly opt-in coupons+newsletter.
portal.prestwood.com
  February 2012 - ASP Classic Edition Year 14 Issue 2  
Your full service technology partner!
From The Editor

Prestwood IT Wins Best of Citrus Heights 2011

Prestwood IT received two Best of Citrus Heights 2011 plaques at the annual Best Of luncheon. Prestwood IT won for best company in both Web Design and Computer Services categories. The event was sold out with over 150 attending.



Expert guidance from working professionals!




 ASP Classic Group Top 
Visit Group | My Group Settings
OOP topic (classic post):
ASP Classic Constructors (Class_Initialize)
by Mike Prestwood

When an object instance is created from a class, ASP calls a special parameter-less sub named Class_Initialize. Since you cannot specify parameters for this sub, you also cannot overload it.

When a class is destroyed, ASP calls a special sub called Class_Terminate.


 Monthly ASP Classic Lesson
ASP Classic Topic:
Code Snippet of the Month

ASP uses MoveFirst, MoveLast, MoveNext, and MovePrevious to move a database cursor (a RecordSet).

objRecordSet.MoveNext

The following snippet moves to the second to last record of a given RecordSet object:

objRecordSet.MoveLast
objRecordSet.MovePrevious
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:
FAQ of the Month: Find Last Day of Week
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
 


Sales Website: www.prestwood.com Or visit our legacy sales site: 
legacy.prestwood.com


©1995-2023 Prestwood IT Solutions.   [Security & Privacy]