<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% option explicit %> <% 'ASPAjax.Path="/aspajax/" ASPAjax.Open() ' Set up ASPajax %> Loading Remote Content using AJAX and ASP

Navigation


<% ' 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 %>

Main Cotent

Remote page content loaded by AJAX here.

This example shows how to load dynamic content from other pages using AJAX. This functionality elegantly replaces IFRAME technology.

<%myPanel.Close%> <% ASPAjax.Close()' Close ASPajax at the end of the HTML %>