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,现在具体的项目中的功能也基本上完成。
  • 相关阅读:
    storm环境搭建
    环境变量
    vmware tools安装及使用其实现与宿主机共享文件夹
    关于mysql中的count()函数
    centos7配置jdk8
    linux常用命令(随时更新中)
    ES中对索引的相关操作
    linux centos7下源码 tar安装mysql5.7.23(5.7以上均可试用)
    安装linux虚拟机配置静态ip(桥接模式,外部机器能够访问)
    安装linux虚拟机配置静态ip(NAT模式)
  • 原文地址:https://www.cnblogs.com/Oceanchip/p/244595.html
Copyright © 2011-2022 走看看