ajax页面中数据提交事件处理问题? 在页面中做ajax两级联下拉时,页面中同时想通过button事件,对二级下拉中的数据库项进行增加或删除,可是总是提示回调错误,该怎样处理比较好,请指点思路? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 那行代码出错onchage中通过AAJX获取数据ADD option 用js事件,再到js方法里面用ajax调后台代码执行 具体该怎样做呀?我的代码是这样的一级下拉:<asp:DropDownList ID="DepartmentDrop" runat="server" OnSelectedIndexChanged="DepartmentDrop_SelectedIndexChanged"></asp:DropDownList><cc1:CascadingDropDown ID="department" runat="server" TargetControlID="DepartmentDrop" Category="department" PromptText="Select Item" LoadingText="Loading.." ServicePath="DepartmentService.asmx" ServiceMethod="GetDepartmentContents"></cc1:CascadingDropDown> 二级下拉: <asp:DropDownList ID="personalLeaveEmployeeNameh" runat="server"></asp:DropDownList> <cc1:CascadingDropDown ID="employeeByDepartment" runat="server" TargetControlID="personalLeaveEmployeeNameh" Category="employee" PromptText="Select Item" ParentControlID="DepartmentDrop" LoadingText="Loading.." ServicePath="DepartmentService.asmx" ServiceMethod="GetEmployeeByDepartmentContents"></cc1:CascadingDropDown> <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="删除" /></ContentTemplate></asp:UpdatePanel> <asp:Label ID="Label2" runat="server" Font-Bold="False" Text=""></asp:Label> <asp:TextBox ID="txtJcdw" runat="server" Width="200px"></asp:TextBox><asp:Button ID="tianJia" runat="server" Height="25px" Text="添加二级下拉" Width="41px" OnClick="tjJld_Clk" /> 我是用AjaxControlToolkit控件实现级联的 问题是:点button将数据提交至数据库时,发生回调错误.怎样才能实现ajax级联下拉的页面中,同时实现button的数据提交不发生错误? 怎样用隐藏域保存己选中DropDownList的值,请给个实例吧!? 为什么架到IIS里面。 读取txt等文件的时候说找不到路径? 如何将ocx控件转换成asp.net上可使用的控件 sql多表查询错误 求助,在服务器端的代码里面如何设置 Lable 控件的背景颜色 求教向asp网页提交参数问题,重分酬谢! 请问在上海什么地方可以买到这本好书???(非邮寄) 分布式系统,是不是SESSION会话就不能用了,因为SESSION只能在一台机子上 请问我应该怎样做才能正常现示网页呢??? 关于跳转到指定框架的问题 一个引用word.dll问题 vs08 无法打开***此安装不支持该项目类型 关于javascript动态增加行设置列宽的问题
onchage中通过AAJX获取数据ADD option
一级下拉:<asp:DropDownList ID="DepartmentDrop" runat="server" OnSelectedIndexChanged="DepartmentDrop_SelectedIndexChanged"></asp:DropDownList><cc1:CascadingDropDown ID="department" runat="server" TargetControlID="DepartmentDrop" Category="department" PromptText="Select Item" LoadingText="Loading.." ServicePath="DepartmentService.asmx" ServiceMethod="GetDepartmentContents">
</cc1:CascadingDropDown>
二级下拉: <asp:DropDownList ID="personalLeaveEmployeeNameh" runat="server"></asp:DropDownList>
<cc1:CascadingDropDown ID="employeeByDepartment" runat="server" TargetControlID="personalLeaveEmployeeNameh"
Category="employee" PromptText="Select Item" ParentControlID="DepartmentDrop"
LoadingText="Loading.." ServicePath="DepartmentService.asmx"
ServiceMethod="GetEmployeeByDepartmentContents"></cc1:CascadingDropDown>
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="删除" /></ContentTemplate></asp:UpdatePanel>
<asp:Label ID="Label2" runat="server" Font-Bold="False" Text=""></asp:Label>
<asp:TextBox ID="txtJcdw" runat="server" Width="200px"></asp:TextBox>
<asp:Button ID="tianJia" runat="server" Height="25px" Text="添加二级下拉" Width="41px" OnClick="tjJld_Clk" />
怎样才能实现ajax级联下拉的页面中,同时实现button的数据提交不发生错误?