简体   繁体   English

避免ASP.NET回发

[英]Avoid ASP.NET postbacks

如何避免ASP.NET回发?

Use AJAX, UpdatePanels, JQuery: 使用AJAX,UpdatePanels,JQuery:

http://www.asp.net/ajax/ should give you a good start. http://www.asp.net/ajax/应该为您提供一个良好的开端。

Asp.NET is entirely based on Postbacks. Asp.NET完全基于回发。

May be are you looking for partial page rendering and client side stuffs. 可能是您正在寻找部分页面渲染和客户端内容。 If this is the case, you can have a look at Asp.NET Ajax . 如果是这种情况,您可以看看Asp.NET Ajax

Try using html controls if you want to avoid postbacks. 如果要避免回发,请尝试使用html控件。 ie., it doesn't post back to the server. 即,它不会回发到服务器。

What is your exact requirement? 您的确切要求是什么? You don't want to postback the control or you don't want to feel the postback of a page. 您不想回发控件,也不想感觉页面的回发。 If so, you can go for UpdatePanel in asp.net ajax and try using Conditional Update. 如果是这样,您可以在asp.net ajax中使用UpdatePanel并尝试使用条件更新。

尝试使用Asp.net MVC3或MVC4人们倾向于使用MVC而不是Webforms

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

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