zoukankan      html  css  js  c++  java
  • Ajax实现两级下拉框连动的应用

    <asp:DropDownList onChange="GetChange(this);" id="drp1" runat="server"></asp:DropDownList>
       <asp:DropDownList id="drp2" runat="server"></asp:DropDownList>

    js脚本:
    返回数据

    后台代码实现
    同时要设置web.Config文件,  
    <httpHandlers> 
         <add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
      </httpHandlers>

    上面是我在做一个具体项目的时候,做的一个测试页面,由于是第一次,所以就写了上面的这样一个简单的测试页面来实现AJAX,现在具体的项目中的功能也基本上完成。
  • 相关阅读:
    centos7 nfs安装
    Rasa在PyCharm中进行debug
    IOS的? !
    IOS中IndexPath
    移动端文本框点击后网页变大的解决办法
    h5 在全屏iphonex中的适配
    net5中得logging保存到文件中
    SQL SERVER 2000数据库置疑处理
    ILSpy源码下载后,编译不过的问题
    Tigase8.x 搭配Mysql8及以上启动时报错(Nodes redirection table: tig_cluster_nodes doesn't exits)的解决方法
  • 原文地址:https://www.cnblogs.com/Oceanchip/p/244595.html
Copyright © 2011-2022 走看看