ASP Examples

The following examples illustrate solutions to some commonly requested 'how do you do it' questions in asp.

To use these I suggest you create a new empty web in FrontPage, close it, and then unzip the example you want into the web folder. Then re-open the web and explore the contents. In some cases there are notes in a text file. In all examples the code is well documented. If you have any problems email me and I will do my best to help.


Passing variables between pages with a form.

You often need to pass information between pages when you use a form for collecting user information. This example collects information about a user on two separate pages and then displays it all on a third page.

Downloadable example


Limiting site access to registered users or members.

A common requirement is to limit access to specific areas of a site to registered users. This example uses a database to store the registered user names and passwords.

Downloadable example

For a single page this can be done more simply and yet still be secure. See this example page


Forcing a file download box when users click on document links.

If you have Word or Excel files stored on your website, using straight links to these causes them to open in the browser window in the relevant application. This causes problems if the user then tries to save the documents. The example shows how a file download dialog box can be forced for any file or document type.

Downloadable example


Problems with Response.Redirect ?

This MVP site probably has the answer.

http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=214




CodePlex