켣-ajax+xmlʵʡˢ



1.ǰ̨htmlؼ
<script language="javascript" src="js/PCA.js"></script>

<!--ʡ-->
<INPUT id="lbl_provice" type="text" runat="server" style="DISPLAY: none" value="㽭ʡ">
<INPUT id="lbl_city" type="text" runat="server" style="DISPLAY: none" value="">
<INPUT id="lbl_area" type="text" runat="server" style="DISPLAY: none">
ǰ̨Ϸ3DropDownListؼDropDownList1,DropDownList2,DropDownList3

2.csҳӴ
ajax ʡxml ڵĴ뵽Ŀ->Class1.cs
ͬʱռ using System.Xml;
ͬʱPage_Load()
Ajax.Utility.RegisterTypeForAjax(typeof(register));//register Ϊҳļͬʱ滻PCA.jsеõ
BindDropDownList();

3.ChinaArea.xml ļĿĿ¼

4.web.config ajax
<system.web>
 <httpHandlers>
  <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
 </httpHandlers>
</system.web>


write:
http://twh.cnblogs.com