关于Ajax无刷新问题
前台代码:
<%@ Page language= "c# " Codebehind= "WebForm1.aspx.cs " AutoEventWireup= "false " Inherits= "AjaxDemo.WebForm1 " %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN " >
<HTML>
<HEAD>
<title> WebForm1 </title>
<script language= "javascript " type= "text/javascript " >
//城市------------------------------
function cityResult()
{
var city=document.getElementById( "TextBox1 ");
WebForm1.GetCityList(city.value,get_city_Result_CallBack);
}
function get_city_Result_CallBack(response)
{
if (response.value != null)
{
//debugger;
document.getElementById( "DropDownList1 ").style.display= "block ";
document.getElementById( "DropDownList1 ").length=0;
var ds = response.value;
if(ds != null && typeof(ds) == "object " && ds.Tables != null)
{