如何停止下拉列表中的页面引用? [英] how to stop page refres in drop downlist ?

查看:73
本文介绍了如何停止下拉列表中的页面引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人知道吗?

如何停止下拉列表中的页面引用?



Can anyone know?

how to stop page refres in drop downlist ?

推荐答案

查看这些线程
http://stackoverflow.com/questions/6542711/stop-dropdownlist-in-asp- net-webforms-from-refreshing-the页面 [
See these threads
http://stackoverflow.com/questions/6542711/stop-dropdownlist-in-asp-net-webforms-from-refreshing-the-page[^]
to stop drop down list auto refresh[^]


您好,

只需将dropdownlist的Autopostback属性设置为false即可在选择期间停止页面刷新. [这只是选择,如果您根据选择填充任何数据或使用AJAX,请不要使用此选项.

请参考以下链接:


ASP.NET DropDownList控件 [ DropDownList Web服务器控件 [如何使用DropDownList AutoPostBack功能 [ ^ ]
AJAX DropDownList [使用Asp.net数据库的Ajax级联下拉列表示例 [ ^ ]
Hi,

Just set Autopostback property of dropdownlist false to stop page refresh during the selection. [This is only just selection Don''t use this if you are populating any data based on the selection or Use AJAX]

Please refer links below:


ASP.NET DropDownList Control[^]
DropDownList Web Server Control[^]
How to use DropDownList AutoPostBack feature[^]
AJAX DropDownList[^]
Ajax Cascading Dropdownlist Sample with database using asp.net[^]


设置AutoPostBack="False"而不是true. AutoPostBack 获取或设置一个值,该值指示在DropDownList中更改所选索引时是否自动回发到服务器.此DropDownList.AutoPostBack is false
Set AutoPostBack="False" instead of true. AutoPostBack gets or sets a value that indicates whether an automatic postback to the server occurs when the selected index has been changed in a DropDownList. The default value of this DropDownList.AutoPostBack is false


这篇关于如何停止下拉列表中的页面引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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