PrestwoodBoards.com
-Collapse +Expand

ASP Classic

Search ASP Classic Group:

Advanced
-Collapse +Expand ASP Classic Group Home◄╣
-Collapse +Expand Message Board
-Collapse +Expand Knowledge Base
-Collapse +Expand ASP Classic To/From
To/FromCODEGuides
-Collapse +Expand ASP Classic Study Test
PRESTWOODCERTIFIED
-Collapse +Expand ASP Classic Store
-Collapse +Expand Members Only
   PrestwoodBoardsAll Groups   

New to PrestwoodBoards?

Sign up, it's free and anyone can join.

Join Today for a free account,
or Sign In if you are already a member.

ASP Classic Group

Welcome Guest!

This page is the ASP Classic Group home page (summary page).


ASP Classic

This group focuses on ASP Classic, the versions of ASP prior to ASP.NET.

ASP Classic not only remains a viable platform for new development, but will be important for a long time to come because of all the existing ASP code that will require maintenance.

ASP Classic Content!
Chat!
ASP Classic Board:
Posts =  149
Threads =  37
Unanswered =  3
Topics =  5
Research!
ASP Classic KB:
Articles =  34
10 Min Starts =  1
Code =  53
Tips =  4
FAQs =  4
Translate!
To/From Code:
Topics =  55
Code =  660
Study!
eCertified:
Beg Q. =  2
Int Q. =  5
Adv Q. =  3
Write!
Member Blogs:
Blogs =  1
Entries =  16

What's happening now! ASP Classic Group!

(New, updated, and unanswered.)

New: All Post Types

Message board, knowledge base, article comments, blogs, news, etc.

  Title Type Topic
Sign In To Check If Stuff Is New
21
Hits
1. Diplaying javascript error message from DB

8/7/2010, 2:18:23 PM

MB Post
ASP Classic - Handling Data  
Sign In To Check If Stuff Is New 2. Comment about ASP Classic Empty String Check (Len(s&vbNullString))
Thank you so much! Beautiful and profound explanation!---Atos
7/21/2010, 2:00:08 PM

Comment


Code
ASP Classic  
Sign In To Check If Stuff Is New
33
Hits
3. ASP Classic Error 3709
{Too Long}
7/11/2010, 8:48:14 AM

Error
Language Details  
Sign In To Check If Stuff Is New
54
Hits
4. ASP Classic Yes/No Function
The following function demonstrates one technique for coding a Yes/No dropdown. It uses a for loop w...
6/15/2010, 2:20:25 PM

Code
ASP Classic  
Sign In To Check If Stuff Is New
320
Hits
5. ASP Classic Edit Record (AddNew, Update, Delete)
In ASP, using ADO, you use RecordSet.AddNew to add a new record, Recordset.Update to post the record...
3/1/2010, 12:00:00 AM

Code
ASP Classic  
Sign In To Check If Stuff Is New
827
Hits
6. ASP Classic Empty String Check (Len(s&vbNullString))
In ASP Classic, you have to add an empty string to the value being compared in order to get consiste...
9/17/2009, 9:47:57 AM

Code


Article
ASP Classic  
More...

New: ASP Classic Message Board Posts

Go To: ASP Classic Message Board
 Thread StarterReplies Last Post Topic
Sign In To Check If Stuff Is New
55
Hits
Diplaying javascript error message from DB

0New!
8/7/2010
ASP Classic - Handling Data
Sign In To Check If Stuff Is New
375
Hits
https to http
{Too Long}
1
Hi Debra, Here are my three routines from my gene...
2/1/2010
ASP Classic Coding
Sign In To Check If Stuff Is New
1088
Hits
Creating Classes in ASP
Does anyone have a simple example of creating a class in ASP? I've always used it as a scripting language and never used in in an object oriented way.
1
Hi Andy, I linked Adam's simple example of creating a class in ASP Classic to this thread (seems ap...
6/11/2008
ASP Classic Coding
Sign In To Check If Stuff Is New
2827
Hits
Exit a While Loop
I've been looking all over, how do you exit a while loop? I tried exit and that didn't work.
5
Thanks to both of you. Great help as usual. I did get it from Mike's post but the example is nice es...
5/12/2008
ASP Classic Coding
More...

Unanswered: ASP Classic Message Board

 Thread StarterReplies Last Post Topic
Sign In To Check If Stuff Is New
55
Hits
Diplaying javascript error message from DB

0New!
8/7/2010
ASP Classic - Handling Data
Sign In To Check If Stuff Is New
938
Hits
ASPMail and Exchange Server 2000
I have a question on ASPMail. I want to know if it can coexist with Exchange Server 2000. Currently I use Cdonts for Emails being sent out from our web site but Cdonts do not coexist with Exchange ser...
0New!
2/25/2003
ASP Classic and Third Party Controls
Sign In To Check If Stuff Is New
608
Hits
ASPMail component ***Urgent Help****
Hi, I have created an asp form which will e-mail data. i am using ASPmail component. the code is right, except remotehost field. i have written remotehost ="pop3.xyz.com" the mailer.Send shows that ...
0New!
2/21/2003
ASP Classic and Third Party Controls
Sign In To Check If Stuff Is New
657
Hits
Display image
I am attempting to display an image that is stored in an access Database as an OLE Object the code i...
0New!
1/2/2003
ASP Classic Coding
More...

New: ASP Classic Knowledge Base Posts

Go To: ASP Classic Knowledge Base
    KB Article KB Topic
Sign In To Check If Stuff Is New
75
Hits

Error
1. ASP Classic Error 3709

Run-time error '3709':
Operation is not allowed on an object referencing a closed or invalid connection.

7/11/2010
Language Details
Sign In To Check If Stuff Is New
105
Hits

Code
2. ASP Classic Yes/No Function

The following function demonstrates one technique for coding a Yes/No dropdown. It uses a for loo...

6/15/2010
ASP Classic
Sign In To Check If Stuff Is New  
478
Hits

Code
3. ASP Classic Array (x = Array())

Arrays in ASP Classic use a 0-based indice.

Use UBound to get the number of elements. UBound returns -1 if the array has no elements, 0 if it has 1, 1 if it has 2, etc.

3/20/2010
ASP Classic
Sign In To Check If Stuff Is New
429
Hits

Code
4. ASP Classic Edit Record (AddNew, Update, Delete)

Languages Focus: Edit Record

This common syntax name documents editing a record as a wh...

6/24/2010
ASP Classic
More...

New: To/From Code

Go To: ASP Classic To/From Guides

Code Snippets

  Code Snippet Created
1. Array 3/20/2010
2. Sort Records 2/8/2010
3. Filter Records 2/7/2010
4. Find Record 2/7/2010
5. Edit Record 2/7/2010
6. Record Movement 2/7/2010
7. Comments 1/1/2009
8. End of Statement 1/1/2009
9. Case Sensitivity 1/1/2009
10. Literals 1/1/2009

Topics

  Topic Category Created
1. Array Data Structures 3/20/2010
2. Sort Records Database 2/8/2010
3. Filter Records Database 2/7/2010
4. Find Record Database 2/7/2010
5. Edit Record Database 2/7/2010
6. Record Movement Database 2/7/2010
7. Comments Language Basics 1/1/2009
8. Left of String Commands 1/1/2009
9. Prevent Derivation OOP Details 1/1/2009
10. Abstraction OOP Details 1/1/2009

New: eCertified Study Questions

Go To: eCertified
Question Level Type Based on KB Post KB Topic
Are arrays in ASP Classic zero-based? 2 YN ASP Classic Array (x = Ar... ASP Classic
In ASP Classic object oriented programmi... 3 MC ASP Classic Destructor (C... OOP
In ASP Classic object oriented programmi... 3 MC ASP Classic Constructors ... OOP
The default for parameters for subroutin... 2 TF ASP Classic Parameters (B... ASP Classic
Which code snippet is syntactically corr... 1 MC ASP Classic Case Sensitiv... ASP Classic
Will the following code print "Hello, Wo... 3 MC ASP Classic Empty String ... ASP Classic
">Given the following ... 2 YN ASP Classic Logical Opera... Language Basics
">Given the following code, will True or F... 1 TF ASP Classic Logical Opera... Language Basics
What is the difference between Response.... 2 MC Response.Redirect vs. Ser... ASP Classic
Else
  Response.Write "Option 2"
End If
Both functions IsCustomerCurrent and IsCustomerInUS return either true or false. If IsCustomerCurrent returns true, does the code in IsCustomerInUS still execute?">Given this...
2 YN If Statement: No Short Ci... Language Basics

Lastest ASP Classic Flashcard

Our flashcards are part of our library of tidbits.

Tidbits are FAQs, Definitions, Tips, and Code Snippets from our knowledge base.

ASP Classic Yes/No Function

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

 
Posted By Mike Prestwood, Post #102169, KB Topic: ASP Classic
 
300 People Online Now!!  
Online Now: Sign In to see who's online now!  Not a member? Join Prestwood now. It's free!