Advertisement

Results for "Author: matthew khoury"

2002ASP #8280
Get Server Variable Info

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

2002ASP #8281
ASP Refresh

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

2002ASP #8282
Format Date

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

2002ASP #8283
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!

2002ASP #8284
Alternate Row Colors

Ever want alternate the row colors of your record set? This code is the easiest way to do it!

2002ASP #8285
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!

2002ASP #8286
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.

2002C #16884
Get Server Variable Info

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

2002C #16885
ASP Refresh

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

2002C #16886
Format Date

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

2002C #16887
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!

2002C #16888
Alternate Row Colors

Ever want alternate the row colors of your record set? This code is the easiest way to do it!

2002C #16889
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!

2002C #16890
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.

2002VB #25488
Get Server Variable Info

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

2002VB #25489
ASP Refresh

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

2002VB #25490
Format Date

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

2002VB #25491
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!

2002VB #25492
Alternate Row Colors

Ever want alternate the row colors of your record set? This code is the easiest way to do it!

2002VB #25493
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!

Languages
Top Categories
Global Discovery