Advertisement

Results for "Author: matt khoury"

6_2008-2009 #202530
Validation

If you're looking for a very thorough validation routine, look no further.

7_2009-2012 #225040
Get Server Variable Info

To gather all server variables, and display them nicely in a readable format.

7_2009-2012 #225041
ASP Refresh

Instead of using a META refresh, use an ASP refresh to insure you have the most current copy of the web page.

7_2009-2012 #225042
Format Date

Format the current data (off the server) in the following format, for example, Tuesday, June 19, 2001.

7_2009-2012 #225043
Add to Favorites - Dynamically!

After searching throughout the web for a JavaScript function that would add a web page to a users favorites folder, I grew increasingly impatient with the laziness of others code, (hey why re-create the wheel?) because others code only lets you add one page to a users favorites folder. Therefore, I created a DYNAMIC “Add to Favorites” function, that for example will add the web page where the code is located to the users favorites. Just create an include virtual, (for script) and insert the include onto all of your pages, or preferably if you have a header page include, just copy the code into that – and Voila! As long as you have the TITLE tags on your page, you’re set!

7_2009-2012 #225044
Display Directory Listing

First off let me say that this code is a modified version of Kaustav Acharya’s post on Planet Source Code. I simplified the code to better suit my needs. You should just be able to copy the code posted below, and in order for this code to work you MUST update the SELECT CASE statement and configure it to work on your server’s structure. I think the other code is a bit harder (not user friendly) to use/fix for inexperienced programmers. Once configured properly, this code will display the contents of a directory wherever this file is placed. I named the file to be inserted into the directory to display index.asp, just because my default web site is set up to read an index.asp file as the default web page. You can also get cute with this script as well, write another select case statement checking for the file types, and display the pertinent icon according to the file name. Not what I need this code for, but just a suggestion. Happy Coding!

7_2009-2012 #225045
Request Form Sub

This code will help make your code more common, and provide simpler viewing for the Request.Form collection, by allowing the developer to place the entire Request.Form collection into a single Sub, therefore helping to organize your code a little better. We’ve all seen the type of code where Request.Form’s are done many, many time throughout an ASP. It’s hard to keep track of, right? Well, using this Sub will help you to organize your code, and your form collection.

7_2009-2012 #225046
Dynamic Favorites Function

To dynamically add a web page to a user's favorites folder.

7_2009-2012 #225047
Move/Add/Swap/Transfer Data Client Side

If you’ve ever had two multiple selection boxes, and wanted to transfer the values of the multiple selection boxes back and forth, then finally submit the code in the adjusted multiple selection box(s), here’s the code to do it!

7_2009-2012 #225048
Validation

If you're looking for a very thorough validation routine, look no further.

Languages
Top Categories
Global Discovery