开发者

an asp,net controll send ajax request

I'm having difficulties to find a good开发者_如何学Python explanation and tutorial on how to send an ajax request from one asp.net control (when clicking on an item in its ) to update from the server another control.

Is UpdatePanel is the only solution- and does it really avoid a postback?

I'll be thankful for any useful link,


Personally ASP.net AJAX is not my favorite thing to use. This is diferent to Microsoft AJAX Library. When you use ASP.net AJAX you are not refreshing the whole page, but the whole page is processed again in the server and in many cases you dont need this. Sometimes you just need one line of text to be changed.

For all these cases I prefer to use JQuery with ASP.net webservices or page web methods. If you want to refresh the content of the user control using this technique I would consider taking a look at this Blog post from ScottGu, I've been using this idea successfully.


An easy alternative is Page Web Methods

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜