This area is for useful scripts that some of our visitors have
contributed. ASP 101 did not write them and is not responsible for the
operation of these scripts... heck we don't even take responsibility
for our own. ;) We simply found them interesting and or useful and
thought some of you might too!
This function was designed to obtain a coherent, reversable
date & time stamp. It can be used for any number of things.
(IE. to add to a user's uploaded file in a web application)
"This script runs onto IIS webserver and it's designed to take large number of files (ex. pics, gif, jpg, bmp) with no-progressive filename from a (web)directory, rename them with a progressive number, keeping the same file extension, and move them into a new (web)directory.
For example you cold have in directory named FromDir those files:
Test.jpg
Hotel.gif
Hotel2.jpg
After the script run you will have into FromDir no files and into TargetDir:
100001.jpg
100002.gif
100003.jpg
Especially designed for pictures, the scripts will ignore the thumbs db created by Windows (thumbs.db)."
"Here is the code for passing array's through session
Var's. I have not commented it but it is pretty simple concept.
The functions are used as follows:
"I have never found a good (and free) set of asp pages to administer a poll, so I created my own. Here they are, with a sample mdb file. The whole system was based on the poll pages at http://www.4guysfromrolla.com/webtech/071099-1.shtml. I modified it in a few ways: instead of basing polls on a date period (users and servers have different times across the world), I made the poll active/inactive. I also modified it so that each user is only allowed to vote once per poll (instead of once per day in the 4GFR example) by writing a cookie to the user's machine with the PollId of the current poll. Users can also click on the View Results link on the poll page to view the results without voting.
Deleting polls removes both the poll and any poll options that were created. I'm sure the code could be more compact and more error checking could be done, but it works great for me. Put the poll.asp and pollresults.asp in the same directory. All others can be in a hidden admin directory as long as everything points to the db correctly."
"I have recently developed a asp script that basically
replaces a database. It is almost like a .ini file
except it stores data in a [Section]key=key value format.
This is meant to help people that cannot or do not wish
to have to pay for an actual database for their site.
I am actually using this script on a site I am getting
ready to release, and I have tested this one I am sending you.
If you have any questions on any aspect of the script,
please feel free to ask. ASP 101 has been helping me since
I started, now I can actually maybe give something back."
"
I'm not sure if you are the correct person to send feedback... but
the form in the site would be to small for this.. :-)
I have been reading the Banner Rotator article in your web site,
and I have what I think is a better solution. It has been designed
by me for my web site (http://www.NanoP3.com/). I'm sure it could
be better designed but I started it as a small banner rotator and
has been increasing capabilities trying not to modify too much
the original design... "
"I built this example because I kept getting asked by a number of
Graphic Designers to use XML. The following is my initial attempt at
exporting data from an Access database into an XML document using the FSO.
Simply place this in your web directory and it will work immediatly.
The index.asp page display the contents of the database, along with a tick box for each product you wish to see in the xml document.
The build.asp page grabs the info from the form on the index.asp and uses the FSO to export and xml page.
Once the build page has performed the build task, you are redirected to the xml page.
Unfortunatly this is as far as I have got with the example."