Prestwood eMag
Our monthly opt-in coupons+newsletter.
|
portal.prestwood.com
|
|
April 2012 - ASP Classic Edition
|
Year 14 Issue 4
|
|
|
|
Your full service technology partner!
|
|
Expert guidance from working professionals!
Company Info topic:
Prestwood IT Social Networking Strategy by Mike Prestwood
Social networking is a bit confusing! Emailing and calling are still the standards. Is faxing still ok? What about Facebook? Do I friend someone or become a fan of their fan page? Wait, what happened to fan pages? Are they now Facebook pages? What about Facebook groups? What about LinkedIn, YouTube, Twitter, MySpace, and others?
The following articles are posted to the PrestwoodBoards knowledge base:
The Prestwood Strategy: Although we still prefer phone calls and email, we do use social media to reach out. Our primary form of social networking is not with our clients, but with fellow IT professionals at PrestwoodBoards.com. Use the link above to learn more including how to interact with Prestwood IT, our other websites and groups, and our staff including Mike Prestwood.
For more information see...
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.
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
|
|
ASP Classic Topic:
Code Snippet of the Month
The following function demonstrates one technique for coding a Yes/No dropdown. It uses a for loop which can be expanded to handle more than the 3 states (Y, N, and blank).
Example of calling the function:
Do you fish? <%=YesNoDropDown("ynFish", "")%>
Function YesNoDropDown(strName, strSelected)
Dim i
Dim strSelectedString
Dim YesNoName
Dim YesNoCode
YesNoName = Array("Yes","No")
YesNoCode = Array("Y","N")
YesNoDropDown = "<select name='" & strName & "'>" & vbcrlf
YesNoDropDown = YesNoDropDown & "<option>" & "--" & "</option>"
For i = 0 To UBound(YesNoName)
If strSelected = YesNoCode(i) Then
strSelectedString = "Selected"
Else
strSelectedString = ""
End If
YesNoDropDown = YesNoDropDown & "<option value='" & YesNoCode(i) & "' " & _
strSelectedString & " >" & YesNoName(i) & "</option>" & vbcrlf
Next
YesNoDropDown = YesNoDropDown & "</select>" & vbcrlf
End Function
Tool Basics Topic:
Question: Can you edit Access and MS SQL Server views?
Answer: Although this question really depends on the provider, in general, the answer is no to MS Access views and yes to MS SQL Server views so long as you open the RecordSet editable.
ASP Classic Topic:
Tip of the Month
When naming constants, Microsoft suggests you prefix each constant with "con" as in conYourConstant. Although, they also say the older all caps with words separated by an underscore is still acceptable (i.e. YOUR_CONSTANT).
Because I code in multiple languages and I really don't like all caps with underscores, I've adopted a lowercase k in place of con as in kFeetToMeter.
|
|
|