hi ! Guys
I would like to share the important of using ajax with old classic asp programming.
I found that Ajax can work with Asp Database, can make speed of page give more better user experiences.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<% option explicit %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--#include file="aspajax.asp"-->
<%
'ASPAjax.Path="/aspajax/"
ASPAjax.Open() ' Set up ASPajax
%>
<title>Loading Remote Content using AJAX and ASP</title>
<link href="SampleContent/CSS/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1> Navigation </h1>
<ul id="PageNav">
<li><a href="SampleContent/Page1.asp" >Page 1</a></li>
<li><a href="SampleContent/Page2.asp" >Page 2</a></li>
<li><a href="SampleContent/Page3.asp" >Page 3</a></li>
</ul>
<hr />
<%
' Create an UpdatePanel to load the content into.
dim myPanel
Set myPanel = ASPAjax.CreateUpdatePanel
myPanel.Id = "MainContent"
myPanel.ChildrenAreTriggers = true
myPanel.FetchWholeDocument = true ' Retrieve the whole target URL to the UpdatePanel
myPanel.RegisterTriggerGroup("PageNav") ' DOM object PageNav's child nodes now activate the UpdatePanel
myPanel.Open
%>
<h1> Main Cotent </h1>
<p>Remote page content loaded by AJAX here.</p>
<p>This example shows how to load dynamic content from other pages using AJAX. This functionality elegantly replaces IFRAME technology.</p>
<%myPanel.Close%>
</body>
</html>
<%
ASPAjax.Close()' Close ASPajax at the end of the HTML
%>
References: http://www.aspajax.org/asp-ajax-examples-loading-remote-content.asp
Any Idea ? To make your asp site faster than Ajax ?