如何实现改变dropdownlist的值触发事件但是不刷新页面 如何实现改变dropdownlist的值触发事件但是不刷新页面。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <ContentTemplate> <asp:DropDownList ID="ddlLB" runat="server" Width="15%" AutoPostBack="True" OnSelectedIndexChanged="ddlLB_SelectedIndexChanged"> </asp:DropDownList> <asp:DropDownList ID="ddlChild" runat="server" Width="20%"> </asp:DropDownList> </ContentTemplate> </asp:UpdatePanel> </div> 用scriptmanager和updatepanel结合,楼上就是正解,晚了一步 添加onchange事件c#:ddlLB.Attributes.Add("onchange","getValue();")getValue自己写个js方法就行 谢谢大家啊,这个问题自己解决了,是用js的,因为我的项目不是Ajax项目,所以2,3 楼的方法不行啊!但还是谢谢大家! ASP.NET 多条件复合查询 丢失语句 高手!在asp.net的web页面中是不是没有全局变量?web页面中的static变量是不是全局变量? 内嵌播放器怎样做到在线播放? 浏览 .aspx文件出错:程序集“Microsoft.mshtml”的签名检查失败 请 思归 等各位高手解答infopath+webservices自定义表单问题 想去深圳哦! 从工具箱拖拽ajax控件到设计区时鼠标总是小圆叉 周五了,放松一下。誰知道百度搜“SB”排最前的是什么嗎? 求助--用户 '' 登录失败 asp.net倒计时!急!!!!!!!!
</asp:ScriptManager>
<div>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:DropDownList ID="ddlLB" runat="server" Width="15%" AutoPostBack="True" OnSelectedIndexChanged="ddlLB_SelectedIndexChanged">
</asp:DropDownList>
<asp:DropDownList ID="ddlChild" runat="server" Width="20%">
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</div>