ADC Cure Security Software Solutions (Logo)
       Products       Samples      Download       Specs         Order       FAQs       Support      
 
 

Samples

 

Sample ASP Page which uses ISP Dictionary

In this sample, lc is the two letter iso language code.
welcome using this language <%=lc%>
<br /><b>
<%=dictionary.Value("Awelcome.0", lc)%></b>

<br />
<select name="postme" multiple="multiple" style="font-weight:bold">
<%=dictionary.LookupValues("Achoices.0", lc, Request.Form("postme"), "selected")%>
</select>
<br />
Here you have another multiple item resource eg. a list of radiobuttons.<br />
<span style="font-weight:bold">
<%=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 Download Page.

<!--#include file="ASPSession.asp"-->

<%
Dim firstVar, newVar
Randomize
firstVar = Session("YourVars") newVar = "Hello world" & (Rnd * 1000)
Session("YourVars") = newVar
%>

<html>
<head><title>Test session</title></head>
<body>
This is the contents of Session("yourVars") : <%=firstVar%><br/>
This is the contents of the new var: <%=newVar%>
</body>
</html>

"Wait!", you might say, "What's so special about this? It's just common ASP code!"
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

Nocookieweb 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 asp.
Cookieweb Shows how to use a session that employs one temporary browser cookie (the session key).
Resumable Session Shows how to send an email containing a resumable session URL.
Recordset web Shows how to store a 'huge' recordset from Northwind in the session that filters/searches/sorts by columns. The dmbs query is only executed once.
In page follow-ups, ADO is executed.
Use a Native Windows login (LDAP) 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
 
 
 
 
Windows hosting verzorgd door ADC Cure.