<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> <% option explicit %> <% 'ASPAjax.Path="/aspajax/" ASPAjax.Open() 'Set up and open AJAX session for the page %> Hello World for ASP AJAX

Hello World Tutorial for ASP AJAX

<% ' Start an UpdatePanel. The enclosed form will automatically use AJAX when it is submitted. dim myPanel Set myPanel = ASPAjax.CreateUpdatePanel myPanel.Id = "ajaxarea1" myPanel.Open %>
<% if ASPAjax.Active then Response.Write "You typed: " & Request("text1") &""%>

<% '' Close the UpdatePanel. myPanel.close set myPanel = nothing %>

An ASPajax UpdatePanel easily enables any form or link to use AJAX instead of a classic page refresh.

The model is simple, stable and robust. This approach can also upgrade existing websites without the need to re-develop.

<% ASPAjax.Close() ' Close AJAX object for the page %>