XmlHttp实现无刷新三联动下拉框

XmlHttp实现无刷新三联动下拉框_第1张图片
1.html代码

< HTML >
    
< HEAD >
        
< title > XmlHttp实现无刷新三联动下拉框 title >
        
< meta  name ="GENERATOR"  Content ="Microsoft Visual Studio .NET 7.1" >
        
< meta  name ="CODE_LANGUAGE"  Content ="C#" >
        
< meta  name ="vs_defaultClientScript"  content ="JavaScript" >
        
< meta  name ="vs_targetSchema"  content ="http://schemas.microsoft.com/intellisense/ie5" >
    
HEAD >
    
< body  MS_POSITIONING ="GridLayout" >
        
< form  id ="Form1"  method ="post"  runat ="server" >
            
< INPUT  style ="Z-INDEX: 102; LEFT: 448px; WIDTH: 56px; POSITION: absolute; TOP: 80px; HEIGHT: 24px"
                onclick
="getData();"  type ="button"  value ="保存"  id ="Button1"  name ="Button1"  runat ="server" >
            
< asp:TextBox  id ="TextBox1"  style ="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 80px"  runat ="server"
                Width
="424px" > asp:TextBox >
            
< asp:DropDownList  id ="DropDownList2"  runat ="server"  style ="Z-INDEX: 103; LEFT: 176px; POSITION: absolute; TOP: 120px" > asp:DropDownList >
            
< asp:DropDownList  id ="DropDownList1"  runat ="server"  style ="Z-INDEX: 104; LEFT: 16px; POSITION: absolute; TOP: 120px" > asp:DropDownList >
            
< asp:DropDownList  id ="DropDownList3"  runat ="server"  style ="Z-INDEX: 105; LEFT: 296px; POSITION: absolute; TOP: 120px" > asp:DropDownList >< INPUT  style ="Z-INDEX: 106; LEFT: 8px; WIDTH: 160px; POSITION: absolute; TOP: 176px; HEIGHT: 22px"
                type
="hidden"  size ="21"  id ="hidprovince"  runat ="server" >< INPUT  style ="Z-INDEX: 107; LEFT: 184px; POSITION: absolute; TOP: 176px"  type ="hidden"
                id
="hidcity"  runat ="server" >< INPUT  style ="Z-INDEX: 108; LEFT: 360px; POSITION: absolute; TOP: 176px"  type ="hidden"
                id
="hidarea"  runat ="server" >
            
< SCRIPT  LANGUAGE ="JavaScript" >
            

            
SCRIPT >
        
form >
    
body >
HTML >

2.cs代码

public   class  WebForm1 : System.Web.UI.Page
    
{
        
protected System.Web.UI.WebControls.DropDownList DropDownList1;
        
protected System.Web.UI.WebControls.DropDownList DropDownList2;
        
protected System.Web.UI.WebControls.DropDownList DropDownList3;
        
protected System.Web.UI.WebControls.TextBox TextBox1;
    
        
public static string ConnectionString=System.Configuration .ConfigurationSettings .AppSettings["ConnectionString"];
    
        
GetDataSet

        
property

        
Page_Load

        
down2_bind

        
down3_bind
        
        
down1_bind

        
Web Form Designer generated code
    }

3.数据库area1.rar
4.Ajax实现无刷新三联动下拉框

5.源代码下载XmlHttpselect.rar

 

你可能感兴趣的:(DropDownList,textbox,string,server,asp,sql,javascript)