I.T. Discussion Community!
-Collapse +Expand
ASP Classic
Search ASP Classic Group:

Advanced
-Collapse +Expand ASP Classic Store

Prestwood eMagazine

October 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

eMag Jul 2013 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
Message Boards
PrestwoodBoards.com
  July 2013 - ASP Classic Edition Year 15 Issue 7  
I.T. Discussion Community!


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.


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.






 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.


OOP topic (classic post):
ASP Classic Member Visibility (Private, Public)
by Mike Prestwood

The member visibility modifiers are Private and Public. If not specified, the default is Public. Private and Public have the usual meaning. Private members are visible only within the class block. Public members are visible within the class and outside of the class.


 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:
Documented Error of the Month: error '80020009'
Error: error '80020009' YourPage.asp, line xxxx
Explanation:

You are trying to reference a field of a RecordSet that has no records or the RecordSet you are using does not contain the field. You may need to add something like...

If Not MyRS.EOF Then
	SomeVar = MyRS.Fields("TheField")
End If

More Info - http://classicasp.aspfaq.com/general/why-do-i-get-80020009-errors.html

ASP Classic Topic:
Resource Link of the Month: 4 Guys from Rolla

Very popular ASP Classic and now ASP.Net website.

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
 



Follow PrestwoodBoards on: 


©1995-2019 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech