Sample ASP Page which uses ISP Dictionary
In this sample, lc is the two letter iso language code.
welcome using this language <%=lc%>
<select name="postme" multiple="multiple" style="font-weight:bold">
<%=dictionary.LookupValues("Achoices.0", lc, Request.Form("postme"), "selected")%>
Here you have another multiple item resource eg. a list of radiobuttons.<br />
<%=dictionary.lookupvalues("Aradio.0", lc, Request.Form("choices"), "checked")%>
View sample above live Multi Language ASP Page using ISP Dictionary
Sample ASP page which uses ISP Session
This page is just a very simple piece of cake, sorry, code that shows you don't
have to learn other syntax.
To download the source code for these demos, go to our
Dim firstVar, newVar
firstVar = Session("YourVars") newVar = "Hello world" & (Rnd * 1000)
Session("YourVars") = newVar
This is the contents of Session("yourVars") :
This is the contents of the new var: <%=newVar%>
"Wait!", you might say, "What's so special about this? It's just common ASP
You would be right to think so. ASP Session looks like any other ASP code, but
the fun is this: It runs in exactly the same way on one web server as on two or
more web servers hosting the same website.
The Session keyword here is not a Microsoft® Session object,
but rather our own ASP Session object replacement.
Some usual ASP code is shown below. It won't teach you anything, but it will
show that our ASP Session replacement practically works in the same (and better)
way as your are accustomed to.
ASP Session replacement samples
||Shows how to deal with a user session that uses no cookies. In
some cases they offer better integration for all browsers, in other cases the
risk of users getting lost are slightly greater.
|View Session Statistics
||Shows how to retrieve statistics. Note, they are calculated by the aspsession service, which also collects expired sessions.
|Asp To Aspx 2.0 (or higher)
||Shows how easy you can exchange session date between Asp.Net
and classic asp! You can use the Session keyword in aspx pages as well,
please read the sample code about some implicit limitations between aspx, ascx and
||Shows how to use a session that employs one temporary browser
cookie (the session key).
||Shows how to send an email containing a resumable session URL.
||Shows how to store a 'huge' recordset from Northwind in the
session that filters/searches/sorts by columns. The dmbs query is only executed
In page follow-ups, ADO is executed.
|Use a Native Windows
||This is inside the download. To get this working you should
have a Windows domain controller with Active Directory within your domain.
Updated: Friday, November 20, 2009