Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Asp & Ajax Solution
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Asp & Ajax Solution

 Post Reply Post Reply
Author
 Rating: Topic Rating: 1 Votes, Average 4.00  Topic Search Topic Search  Topic Options Topic Options
angkorboy View Drop Down
Newbie
Newbie
Avatar

Joined: 02 September 2005
Status: Offline
Points: 29
Post Options Post Options   Thanks (0) Thanks(0)   Quote angkorboy Quote  Post ReplyReply Direct Link To This Post Topic: Asp & Ajax Solution
    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
Any Idea ? To make your asp site faster than Ajax ? TongueWink


Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 18 January 2010 at 11:56am
Thanks for the link.  This will be useful in the future as we redesign our site.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.