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,现在具体的项目中的功能也基本上完成。
  • 相关阅读:
    不用if/else swich for while实现累加
    1.java数据结构
    青蛙跳台阶问题
    next与nextLine
    9.遗传算法
    Docker镜像管理
    Docker镜像管理
    CentOS 6.7安装Docker
    CentOS 6.7安装Docker
    数字三角形_递归_递推(动态规划)
  • 原文地址:https://www.cnblogs.com/Oceanchip/p/244595.html
Copyright © 2011-2022 走看看