下拉列表和更新面板冲突 [英] Dropdown List and Update panel conflict

查看:93
本文介绍了下拉列表和更新面板冲突的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在ASP .Net中,在Update面板控件中,AutoPostback属性为true的dropdownList始终刷新整个页面。如果选择下拉项,则整页刷新并且页面波动。如何防止这种情况。

In ASP .Net a dropdownList which AutoPostback property is true inside an Update panel control always refresh the whole page. If select a dropdown item then full page refreshes and page fluctuate. How can I prevent this.

推荐答案

你需要删除自动回发并为你的下拉列表设置asp:AsyncPostBackTrigger

http://stackoverflow.com/questions/2138565/drop-down- list-in-update-panel-caused-full-postback [ ^ ]
you need to remove auto post back and set asp:AsyncPostBackTrigger for your drop down list
http://stackoverflow.com/questions/2138565/drop-down-list-in-update-panel-causing-full-postback[^]


这篇关于下拉列表和更新面板冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆