ASP Documentation
Overview
• Introduction
• Getting started
• Dynamic-CD wizard
Passwords & Encryption
• Overview
• Example 1
• Example 2
Scripts
• The script language
• Script examples
• Database scripts
Technical details
• Applications
• Built-in objects
• Character Encoding
• Cookies
• Database CDs
• Development tips
• FAQs
• Future developments
• Global.asa
• Network support
• Object registration
• Resources
• ScriptingContext
• Server-side includes
• Sessions
• Technical limits
|
|
Customisation
Customization is often supported by using Cookies, where
settings are stored and recovering at a later date.
Select settings to save, or restore from saved values
Script code to save the settings :
<%
Response.Cookies( "radioA") = radioA
Response.Cookies( "radioA").Expires = "Jan 01, 2007"
Response.Cookies( "radioB") = radioB
Response.Cookies( "radioB").Expires = "Jan 01, 2007"
Response.Cookies( "radioC") = radioC
Response.Cookies( "radioC").Expires = "Jan 01, 2007"
Response.Cookies( "radioD") = radioD
Response.Cookies( "radioD").Expires = "Jan 01, 2007"
%>
|
Script code to restore the settings :
<%
radioA = Request.Cookies( "radioA")
radioB = Request.Cookies( "radioB")
radioC = Request.Cookies( "radioC")
radioD = Request.Cookies( "radioD")
%>
|
View the ASP code
for this example.
Customisation by redirection
A simple form of customisation can be provided through
redirection, where different users are
redirected to different parts of your CD.
To try out this technique, see the Script Demo page.
' pick up the user's name
thisUser = Request.Form( "userName")
' choose where to go
IF userName = "susan" THEN
Response.Redirect( "userSusan.asp")
ELSEIF userName = "henry" THEN
Response.Redirect( "userHenry.asp")
ELSEIF userName = "tracy" THEN
Response.Redirect( "userTracy.asp")
END IF
|
View the ASP code
for this example.
© Copyright 2000-2007
PHD Computer Consultants Ltd
|