如何在asp.net中处理Ajax页面 [英] how the ajax page process in asp.net

查看:71
本文介绍了如何在asp.net中处理Ajax页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在asp.net中处理ajax页面?


或类似于普通页面.

[从答案中移出]
我问ajax页面的生命周期.我的想法是页面的一部分像回去一样,在iis上iis怎么知道iis是基于ajax的请求,并且它进入所有httpmodules,最后将进入httphander.

how the ajax page process in asp.net?


or is similer to normal page.

[Moved from answer]
im asking the ajax page life cycle. i have the idea its goes like portion of the page is going back ,at the iis how the iis know it was the ajax based request, and it that goes to all the httpmodules,and finally will go the httphander.

推荐答案

Ajax的关键是XmlHTTPRequest对象,它可以帮助您与服务器通信并接收文本响应.您可以使用JavaScript DOM将页面中的相关元素替换为服务器返回的新文本.

请参阅有关CP的这篇文章,以了解有关它的更多信息.

ASP.NET的AJAX技术和框架简介 [ ^ ]
The key of Ajax is XmlHTTPRequest object, which can help you communicate with the server and recieve the text response. You can use JavaScript DOM to replace the related element in the page by the new text returned from server.

Look at this article on CP to read more about it.

An Introduction to AJAX Techniques and Frameworks for ASP.NET[^]


这些文章将帮助您理解和实现AJAX:

面向初学者的AJAX(第1部分)-了解ASP.NET AJAX服务器控件 [ ^ ]
面向初学者的AJAX(第2部分)-使用XMLHttpRequest和jQuery AJAX实施级联下拉列表 [ ^ ]
These articles will help you in understanding and implementing AJAX:

AJAX for Beginners (Part 1) - Understanding ASP.NET AJAX Server Controls[^]
AJAX for beginners (Part 2) - Using XMLHttpRequest and jQuery AJAX to implement a cascading dropdown[^]


任何支持异步处理的浏览器都使用XMLHttp对象,如果不支持XMLHttp,则AJAX将不起作用.
IE4和更高版本中提供了此功能
Any browser to support Asynchronus processing uses XMLHttp object, if XMLHttp is not supported, then AJAX will not work.
This is available from IE4 and higher versions


这篇关于如何在asp.net中处理Ajax页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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