|
KB Article |
|
|
Mike Prestwood
|
1. 4 Guys from Rolla
http://www.4guysfromrolla.com/
(1 Comments
, last by Lonnie.T )
|
Link
6554 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
2. ActivePerl Distribution (Install Perl)
ActivePerl is the industry-standard Perl distribution, available for Windows, Linux, Mac OS X, Solaris, AIX and HP-UX. Developers worldwide rely on ActivePerl's completeness and ease-of-use, while corporate users protect their infrastructure and stay competitive with quality-assured ActivePerl business solutions.
16 years ago, and updated 16 years ago
(1 Comments
, last by Robert.G3 )
|
Download
15514 Hits
|
Perl
|
Mike Prestwood
|
3. ActivePerl Pro Studio
Commercial Perl development suite from ActiveState.
(1 Comments
, last by Dana.M )
|
Download
11947 Hits
|
Perl
|
Kim Berry
|
4. ADO Objects must be explicitly closed
Setting ADO objects to Nothing without first closing them might cause ASPMail to fail
(1 Comments
, last by Albert.C2 )
|
KB Post
6442 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
5. ASP and ADO Coding Practices
ASP and ADO coding best practices.
(1 Comments
, last by Albert.C2 )
|
KB Post
9841 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
6. 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.
14 years ago, and updated 13 years ago
(2 Comments
, last by Jeorge.W )
|
Code |
KB Post |
17424 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
7. ASP Classic Case Sensitivity (No)
ASP Classic is not case sensitive. My preference for all languages where case sensitivity does not matter is to use camel caps as in the first example above. Many developers coming from a case sensitive language prefer to use all lowercase.
16 years ago, and updated 15 years ago
(4 Comments
, last by WilliamE.G.W )
|
Code
19658 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
8. 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, and RecordSet.Delete to delete it. To edit a record, you open the RecordSet using an editable cursor.
|
Code
20192 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
9. 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 consistent results. For example, add &"" to your string varilable or it's code equivalent &vbNullString. Then compare to an empty string or verify it's length to 0 with Len.
15 years ago, and updated 14 years ago
(4 Comments
, last by Eugene.P )
|
Code |
Article |
48169 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
10. ASP Classic error 0208 : 80004005 (Generic request collection)
error 'ASP 0208 : 80004005'
Cannot use generic Request collection
/_private/footer_content.inc, line 72
Cannot use the generic Request collection after calling BinaryRead.
17 years ago, and updated 17 years ago
(4 Comments
, last by Dana.M )
|
Error
20084 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
11. ASP Classic Exception Trapping (On Error)
Languages Focus: Exception TrappingA common usage of exception handling is to obtain and use resources in a "try-it" block, deal with any exceptions in an "exceptions" block, and release the resources in some kind of "final" block which executes whether or not any exceptions are trapped. ASP Classic Exception Trapping
16 years ago, and updated 16 years ago
|
Code
9704 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
12. ASP Classic File Extensions (.ASP)
.asp is the default extension for Active Server Pages (ASP) although some developers will change the default extension in an effort to add an additional security level. Although there is no clear standard for include files, using .INC is common but you must make sure that .INC files are not executed nor displayed.
16 years ago, and updated 15 years ago
|
Code
8130 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
13. ASP Classic Filter Records (Filter)
In ASP, using ADO, you filter a set of records using Filter.
|
Code
9041 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
14. ASP Classic Find Record (Find, Seek)
In ASP, using ADO, you use Find and Seek to move a cursor of a RecordSet to a matching record.
|
Code
8334 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
15. ASP Classic Parameters (ByRef, ByVal)
By Reference or Value For parameters, you can optionally specify ByVal or ByRef. ByRef is the default if you don't specify.
16 years ago, and updated 15 years ago
|
Code
12751 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
16. ASP Classic Record Movement (MoveFirst, MoveLast, MoveNext)
ASP uses MoveFirst, MoveLast, MoveNext, and MovePrevious to move a database cursor (a RecordSet). objRecordSet.MoveNext
(3 Comments
, last by fuzail.f )
|
Code
18916 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
17. ASP Classic Sort Records (Sort)
In ASP, using ADO, you sort a set of records using the Sort property.
(1 Comments
, last by Levi.M )
|
Code
8868 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
18. 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", "")%>
(7 Comments
, last by Natalie.Z )
|
Code
9190 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
19. ASP Constant Naming Convention
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).
16 years ago, and updated 16 years ago
|
Tip
11601 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
20. ASPSuite Developers Blog
Developer blog journal for our ASPSuite product. This blog is intended for the Prestwood ASP Classic developers.
18 years ago, and updated 17 years ago
, last by mprestwood )
|
Blog
12594 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
21. Associative Arrays in JavaScript
An associative array links a set of unique values (keys) to another set of values (not necessarily unique). Associative arrays are also known as a dictionary or a hash table in other languages.
|
Code
15338 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
22. Borland CodeGear Releases Delphi for PHP
CodeGear, a leader in developer tools, today announced Delphi for PHP, a component-based rapid application development (RAD) IDE, and VCL for PHP, an open source visual component library.
17 years ago, and updated 17 years ago
(1 Comments
, last by Shane.J3 )
|
News
5203 Hits
|
PHP & Delphi for PHP
|
Mike Prestwood
|
23. Browser Size
How do you specify the browser size of a window in a link?
|
FAQ
10129 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
24. CDO (Collaboration Data Objects)
Using CDO to send email.
(1 Comments
, last by Donald.S4 )
|
KB Post
8577 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
25. Changed PHP Global Variables
PHP has become more conformed to CGI specifications and as such, you will need to make changes to your code in order for global variables to be filled in.
(2 Comments
, last by Ginger_N._Wheel)
|
KB Post
12974 Hits
|
PHP & Delphi for PHP
|
Mike Prestwood
|
26. CMS
Short for Content Management Sytem (CMS) and is used to manage content on a website such as web page content, knowledge base, online store, message boards, etc. A popular .Net CMS' right now is DotNetNuke. Prestwood's own ASPSuite is a customized CMS we use for our website and our clients.
(2 Comments
, last by bella.w )
|
Definition
13723 Hits
|
Website Design & Hosting
|
Bryan Valencia
|
27. Connection Strings, Web.Config, and the Development Environment
There is a way to configure your ASP.NET website with one configuration for your internal development environment and another for your online website - and still be able to publish your site without hand editing the web.config.
|
KB Post
9271 Hits
|
Website Design & Hosting
|
Mike Prestwood
|
28. DateDiff vbMonday ww Week of Year
This code returns the current week of the current year with a week starting on Monday.
|
Code
11772 Hits
|
ASP Classic Coding
|
Wes Peterson
|
29. Delphi for PHP 2.0 ships
After selling tens of thousands of units of the initial version of Delphi for PHP, first released in February of 2007, in early March, CodeGear announced the availability of version 2.0.
16 years ago, and updated 16 years ago
(1 Comments
, last by adamlum )
|
News
8686 Hits
|
PHP & Delphi for PHP
|
Bryan Valencia
|
30. Don't Overlook Robots.txt
When designing websites, all developers are required to manage not only the content of the site, but the indexing of the site as well. Robots.txt is a powerful tool you can use to make sure your projects are listed in search engines as effectively as possible.
(1 Comments
, last by Merle.R )
|
Tip
11248 Hits
|
Website Design & Hosting
|
Mike Prestwood
|
31. error '80020009'
error '80020009'
YourPage.asp, line xxxx
16 years ago, and updated 16 years ago
|
Error
14684 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
32. Find Last Day of Week
How do you find last Monday? I want to return a date for last Monday or today if today is Monday.
17 years ago, and updated 15 years ago
(4 Comments
, last by Daniel.P )
|
FAQ
14174 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
34. How do I determine which version of IIS I am running?
The following ASP Classic code displays the version of the Internet Information Services (IIS) you are running in the form of a text string (i.e. Microsoft-IIS/6.0).
|
Code
7033 Hits
|
ASP Classic Coding
|
NE Ohio Computer Guy
|
35. How to Print the Contents of a Web Page Using JavaScript
This article describes a technique I have used in JavaScript to print the contents of a web page in a neat and readable fashion. When site visitors try to print a page using CONTROL P or File then Print, the output on the printer is typically messy and illegible.
47 months ago, and updated 47 months ago
|
Article
514 Hits
|
JavaScript and AJAX
|
NE Ohio Computer Guy
|
36. How to Program a HTML List Box to Redirect to Other Web Pages
This article describes a technique I use in HTML to perform redirection to other web pages.
|
Article
579 Hits
|
Website Design & Hosting
|
Mike Prestwood
|
37. JavaScript
JavaScript is a platform-independent, event-driven, interpreted programming language developed by Netscape Communications Corp. and Sun Microsystems. Originally called LiveScript (and still called LiveWireTM by Netscape in its compiled, server-side incarnation), JavaScript is affiliated with Sun's object-oriented programming language JavaTM primarily as a marketing convenience. They interoperate well but are technically, functionally and behaviorally very different.
|
Definition
10419 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
38. JavaScript Case Sensitivity (Yes)
JavaScript is case sensitive. Change the case, and it no longer works! Notice the "W" in "Write" is capitalized. <script language=JavaScript> <!-- document.Write("Hello"); //Does not work! //--> </script>
Variable names are case sensitive.
16 years ago, and updated 15 years ago
|
Code
9438 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
39. JavaScript Code Blocks ({ })
Inhtml pages, you embed JavaScript code between <script> and </script> (see example). Also it's tradtional to put an HTML comment around your code too so that really old browsers don't crash (probably not all that important these days).
For JavaScript, Java, PHP, and C++, I prefer to put the first { at the end of the first line of the code block as in the example above because I see moreJavaScript codeformatted that way.
16 years ago, and updated 15 years ago
|
Code
10425 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
40. JavaScript Event Handler
The JavaScript event handler contains events centered around the Document Object Model (DOM). Common events include onMouseOver and onMouseOut, onFocus and onBlur, onClick and onDblClick, onChange and onSelect, onLoad and onUnload.
For example, onMouseOver and onMouseOut are frequently used with websites to change an image when your mouse moves over it. The onClick event is used to trigger code upon a mouse click.
|
Code
11663 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
41. JavaScript Exception Trapping (try/catch/finally)
See "throw" to raise (throw) an error.
16 years ago, and updated 16 years ago
|
Code
7311 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
42. JavaScript File Extensions
.js is the common standard for browser-side JavaScript and .jsp is the common standard for server-side JavaScript.
16 years ago, and updated 15 years ago
|
Code
7423 Hits
|
JavaScript and AJAX
|
NE Ohio Computer Guy
|
43. JavaScript for Running Slideshows of Images
This article describes the JavaScript code I use to run a slideshow of images.
47 months ago, and updated 46 months ago
(2 Comments
, last by Tony.L3 )
|
Article
729 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
44. JavaScript Inheritance (No, but sort of.)
JavaScript does not offer a formal inheritance machanism. There are some tricks some developers are fond of.
16 years ago, and updated 15 years ago
|
Code
10360 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
45. JavaScript Member Method
Not fully OOP as you can call the method outside of the class.
16 years ago, and updated 15 years ago
|
Code
9186 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
46. JavaScript Similiar to C
How is JavaScript syntax like C / C++?
|
FAQ
10350 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
47. JavaScript substr
Above returns "Mike P". SubStr(StartIndex, NumberOfCharacters)
Notice JavaScript is 0 based (the first character is character 0).�0 is start character, 6 is number�of characters).�
You can also use substring where both numbers are indexes: SubString(StartIndex, EndIndex)
The following returns "re". var sName; sName = "Mike Prestwood"; sName = sName.substring(6, 8); document.write(sName);
16 years ago, and updated 16 years ago
|
Code
9331 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
49. Perl Assignment (=)
Perl assignment operators:
= |
Assignment |
$x = 8; |
+= |
Addition |
$x += 8; |
-= |
Substraction |
$x -= 8; |
*= |
Muliplication |
$x *= 8; |
/= |
Division |
$x /= 8; |
%= |
Modulus |
$x %= 8; |
**= |
Exponent |
$x **= 8; |
|
Code
9978 Hits
|
Perl
|
Mike Prestwood
|
50. Perl Comments (#)
Commenting Code Perl uses # for single line comments and Perl does NOT have a multiple line comment.
Compiler Directives (A special comment.)
Perl also uses compiler directives embedded in comments with #! as in: #!/usr/local/bin/perl -w
16 years ago, and updated 15 years ago
(1 Comments
, last by saunder.s )
|
Code
9733 Hits
|
Perl
|
Mike Prestwood
|
51. Perl Constants (use constant)
In PHP, you declare constants using the define keyword: define("CONST_NAME", "Value");
Constants in PHP are case sensitive. A common standard in PHP is to use all-uppercase letters, with underscores to separate words within the name.
|
Code
12324 Hits
|
Perl
|
Mike Prestwood
|
52. Perl Custom Routines (sub)
Perl uses subs and parameters are referenced in a special array. All arguments passed to a subroutine are stored in a special @_ array. To retrieve the arguments, you have to look inside the array and extract them.
16 years ago, and updated 16 years ago
|
Code |
KB Post |
14034 Hits
|
Perl
|
Mike Prestwood
|
53. Perl Development Tools
Many developers just use a text editor but you have to be careful when developing on Windows and deploying to Unix/Linix. Some Windows text editors including Notepad, and Microsoft Expression Web save text files in UTF-8 which is not compatible with Unix/Linux.
There are many Perl editors available including ActivePerl Pro Studio, and the free Perl Express. I usually use Perl Express.
Quick Start: Install Perl to IIS or Apache, install Perl Express then configure to use Perl, then install MySQL. For IIS 7, you will likely have to configure Hangler Mappings and add %s %s.
16 years ago, and updated 15 years ago
|
Code
13684 Hits
|
Perl
|
Mike Prestwood
|
54. Perl Express
Free Perl editor.
|
Download
11691 Hits
|
Perl
|
Mike Prestwood
|
55. PHP
A recursive acronym that stands for:
PHP: Hypertext Preprocessor
|
Definition
12342 Hits
|
PHP & Delphi for PHP
|
Adam Lum
|
56. PHP and MySQL Basics
The basics to get you going in PHP with a MySQL Database.
18 years ago, and updated 16 years ago
(1 Comments
, last by Nicole.A )
|
KB Post
10995 Hits
|
PHP & Delphi for PHP
|
Mike Prestwood
|
57. PHP Code Blocks ({ })
In .PHPhtml pages, you embed PHP code between <?PHP and ?>.
For PHP, JavaScript, Java,and C++, I prefer to put the first { at the end of the first line of the code block as in the example above because I see morePHP codeformatted that way (and on PHP.Net).
PHP Alternative Syntax
Although I don't like to use it, PHP offers an alternative syntax for if, while, for, foreach, and switch. These code blocks are surrounded by statement ending keywords that all use End with camel caps such as endif, endwhile, endfor, endforeach,and endswitch.
16 years ago, and updated 15 years ago
|
Code
12996 Hits
|
PHP & Delphi for PHP
|
Mike Prestwood
|
58. PHP Constants (define)
In PHP, you declare constants using the define keyword: define("CONST_NAME", "Value");
Constants in PHP are case sensitive. A common standard in PHP is to use all-uppercase letters, with underscores to separate words within the name.
|
Code
10829 Hits
|
PHP & Delphi for PHP
|
Mike Prestwood
|
59. PHP Development Tools
Many developers just use a text editor. There are many PHP editors available including phpDesigner, and Delphi for PHP.
16 years ago, and updated 15 years ago
(3 Comments
, last by Edmund.H )
|
Code
9327 Hits
|
PHP & Delphi for PHP
|
bhavyait
|
60. replaceAll
Implements replaceAll in javascript. This is achieved using prototype.js
17 years ago, and updated 16 years ago
(1 Comments
, last by Melvin.U )
|
Code
15254 Hits
|
JavaScript and AJAX
|
Adam Lum
|
61. Response.Redirect vs. Server.Transfer
A quick comparison.
17 years ago, and updated 15 years ago
(1 Comments
, last by Diana.G )
|
KB Post
12567 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
62. Security Tips: 13 Ways to Harden Your Code
13 things you can do to make your code more secure, general advice about the rest of it, PLUS YOUR COMMENTS and experiences.
16 years ago, and updated 14 years ago
(6 Comments
, last by mprestwood )
|
Article
55982 Hits
|
Website Design & Hosting
|
Mike Prestwood
|
63. Setting to null or empty and checking
Use IsEmpty or Len > 0 to test
When clearing, set to Null (not "")
21 years ago, and updated 17 years ago
(2 Comments
, last by Sparkebe.C )
|
KB Post
11446 Hits
|
ASP Classic Coding
|
Adam Lum
|
64. Setting up your Web Server to Run ASP Scripts
Running ASP on IIS
|
KB Post
6957 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
65. Share data From ASP To JavaScript
How do you pass values from ASP to Javascript in the same page?
|
FAQ
10571 Hits
|
JavaScript and AJAX
|
Mike Prestwood
|
66. Sun Java System Active Server Pages
Run ASP pages on Linux/Unix! This software was originally developed by ChiliSoft.
|
Download
13682 Hits
|
ASP Classic Coding
|
NE Ohio Computer Guy
|
67. The Workings of a Simple PHP Scrolling List
This article shows how PHP can be used to access a MySQL database to retrieve data for a scroll list. Here, I will discuss one that lists 12 rows at a time on a web page.
10 years ago, and updated 46 months ago
|
Article
6807 Hits
|
PHP & Delphi for PHP
|
Mike Prestwood
|
68. UBB Threads
http://www.ubbcentral.com/
|
Link
8761 Hits
|
PHP & Delphi for PHP
|
Mike Prestwood
|
69. VBScript
What does VBScript stand for?
|
FAQ
10898 Hits
|
ASP Classic Coding
|
Mike Prestwood
|
70. VBScript Language Reference on Microsoft.com
http://msdn2.microsoft.com/en-us/library/d1wf56tt.aspx
|
Link
5885 Hits
|
ASP Classic Coding
|