Print Page | Close Window

Asp & Ajax Solution

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=28180
Printed Date: 28 March 2026 at 5:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Asp & Ajax Solution
Posted By: angkorboy
Subject: Asp & Ajax Solution
Date Posted: 28 December 2009 at 3:39pm
Tonguehi ! 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" rel="nofollow - http://www.aspajax.org/asp-ajax-examples-loading-remote-content.asp 
Any Idea ? To make your asp site faster than Ajax ? TongueWink





Replies:
Posted By: wistex
Date Posted: 18 January 2010 at 11:56am
Thanks for the link.  This will be useful in the future as we redesign our site.

-------------
http://www.wistex.com" rel="nofollow - WisTex Solutions
http://www.caribbeanchoice.com/forums" rel="nofollow - CaribbeanChoice Forums



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net