简体   繁体   English

ASP.NET 4中没有ListView的Refresh()方法?

[英]No Refresh() method for ListView in ASP.NET 4?

I am using ASP.NET 4 and Visual Studio 2010 Express Edition. 我正在使用ASP.NET 4和Visual Studio 2010 Express Edition。 I get an error when I try to use the refresh() method for ListView control in my web form. 当我尝试在我的Web窗体中对ListView控件使用refresh()方法时收到错误消息。 It says there is no such thing for ListView control whereas the documentation on msdn says it should have one. 它说ListView控件没有这种东西,而msdn上的文档说它应该有一个。

Right now, I am refreshing the content of the control by changing the SELECT command of the Sql Data Source that the control is bound to. 现在,我通过更改控件绑定到的Sql数据源的SELECT命令来刷新控件的内容。 Please help. 请帮忙。

The ListView for WinForms has a Refresh Method however ASP.Net does not afaik. WinForms的ListView具有刷新方法,但是ASP.Net不存在。 I think a solution to your problem can be found here How do I refresh an ASP.NET ListView using jQuery and AJAX? 我认为可以在这里找到解决问题的方法。 如何使用jQuery和AJAX刷新ASP.NET ListView?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM