|
|
|
CodeAve.com -
ASP -
Server Variables
|
|
|
CodeAve.com/ASP - Server Variables
|
Disclaimer/Referring Page Check
There are instances where you will want to verify that a user has clicked a link to get to certain content or that a disclaimer was viewed and "agreed to" by the user click. This example will check to see what the referring page to it was and it the refe (more)
404 Error Page (With a Db an IP Capture)
The basic 404 error or file not found page serves two specific
purposes. Firstly, to alert the user that the item they were expecting is
not currently available, rather than the generic page your host may provide or
worse the generic windows file (more)
Framed Click Through
Many sites place a frame around an external link from their site. This enables a few things. Firstly, it allows you display a banner ad on a click from your site that you would not normally receive. Secondly, it allows for easy navigation back to your (more)
Detecting MSN Explorer
MSN users are now given the MSNExplorer as a "default" browser with the software that comes with the service. Much like AOL does in using IE within the confines of AOL shell, MSN has added features around the MSN browser and have made it trackable on IIS (more)
Referring Page Source
Stop bad input before it gets into your applications. Typically, form actions to your applications should only come from your server. You take time to develop your applications to handle input data in a very specific way whether by checking input on the (more)
404 Error Page (CDONTS)
The basic 404 error or file not found page serves two specific
purposes. Firstly, to alert the user that the item they were expecting is
not currently available, rather than the generic page your host may provide or
worse the generic windows file (more)
Form Dates
There are a number of ways to have users input dates into your
application. Dropdown menus are the preferred method employed as there
will certainly be less error checking on dropdown input as compared to textbox
input. Utilizing the date() (more)
Disk Space Usage
One of the most important things that webmasters need to track is their disk space utilization.
The amount of space that your site is taking up on the server is often times the only real difference in the price of many web-hosting packages. If your site (more)
ASP Form Tester
The ASP Form Tester displays all form variables targeted to it. Any variables passed via form action set to get (This is including anything passed to the page in the url) or post will be displayed including the values being passed. When developing new HT (more)
Frames View | No Frames View
Want to provide a link to a common navigation area within your website, but do not want to take up valuable screen space? Place it in a frame. Utilizing two server variables http_referrer and script_name
You can prvide the ability to break into and out (more)
URL Encode
Stop problems before they start by making sure data input is address bar friendly. Server.urlencode will take text and convert any special character(s) it finds and convert it to a format that can b (more)
HTML Encode
Writing special characters to browser output giving you trouble? Server.htmlencode will take text and convert any special character(s) it finds and convert it to a more browser friendly format. View the source on the output get the full effect of what t (more)
All Server Variables
How many server variables are available for use in your .asp
scripts? Display them all with this simple script. (more)
Referring Page
Knowing from what page certain requests come from can be extremely useful in
.asp scripts. The request.servervariables("http_referer")
will make the url of the previous page available as a variable providing (more)
Script Name
Just like the X that marks You Are Here asp has
a function to call the name of the current page. This is particularly
useful when developing pages that will send form actions back to the same .asp
page or when v (more)
|
|
|
|
|