ÎÒǰ̨a.aspxÒ³ÃæºÜ¼òµ¥£¬¾ÍÓõ½ÁËajaxÌû³öÀ´£¬ÎªÁË·½±ãÌùÖØ¹þ£¡
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>ÎÞ±êÌâÒ³ </title>
<script type="text/javascript">
var xmlHttp;
function createXMLHttpRequest()
{
if(window.ActiveXObject)
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else if(window.XMLHttpRequest)
{
xmlHttp= new XMLHttpRequest();
}
}
function doing()
{
createXMLHttpRequest();
xmlHttp.open("GET","http://localhost/ajax8.aspx?date=1",true);
xmlHttp.onreadystatechange=handleStateChange;
xmlHttp.send(null);
}
function handleStateChange()
{
if(xmlHttp.readyState==4)
ÔÚÓÃÊ¡ÊÐÁª¶¯µÄʱºò£¬¸ù¾ÝʡȡÊУ¬ÊÐÊÇͨ¹ýajaxÈ¡³öÀ´µÄ£¬Óúǫ́´úÂëÈ´ÎÞ·¨»ñÈ¡dropdownlistÖÐÊеÄÑ¡ÖÐÏîÖµ£¬Õâ¸ö¸ÃÔõô´¦Àí£¿
Request.Form["ÄãµÄdropdownlist id"]
Request["dropdowlist2" ......
´ó¼Ò¶¼ÖªµÀ£¬AJAXµÄºÃ´¦ÊÇÎÞÉÁ¾Ö²¿Ë¢Ð£¬°´Ðè´«ÊäÊý¾Ý¼ÓÔØ¿ì£¬¸øÓû§µÄÌåÑéȷʵÊǺá£
µ«ÊÇËü²»Ö§³ÖËÑË÷ÒýÇæ£¬ÕâҲʹµÃAJAXµÄÃûÉùºÜ³ô£¬¿ª·¢ÈËÔ±²»µÃ²»¿¼ÂÇÔÚÓû§ÌåÑéºÍÖ§³ÖËÑË÷Á½·½Ãæ×÷Ȩºâ¡£
ÎÒµÄÒ»¸öÒ³ÃæÓà ......