jQuery UI+ASP.NET UpdatePanel-值得吗?

I really like the looks of jQuery UI and I'd love to integrate it into my ASP.NET Web Applications. I like the themes and how easy it is to use the widgets. I'm currently using AJAX Control Toolkit controls like the Calendar and ModalPopup. I'm hoping to replace them with the DatePicker and Dialog widgets, but I hear they have issues with UpdatePanels. There are workarounds for these issues, but I wonder, is it worth it?

Which leads into my question(s):

  • Has anyone had luck using jQuery UI widgets exclusively (instead of AJAX Toolkit Controls) in an ASP.NET Web Application that occasionally uses UpdatePanels?
  • Are there any best practice resources for getting jQuery UI and UpdatePanels to play nice?

Update: Based on the answers so far, it seems that the best thing to do is replace UpdatePanels with $.ajax and PageMethods. That should allow me to use jQuery UI without any issues and also improve my AJAX performance.

#0

No, it's not worth it. If the toolkit's calendar and modalpopup extenders are working for you, then just hold on to them.

In future projects, stay away from asp.net ajax and use jQuery exclusively. This way you wont run into any of the updatepanel problems. ASP.NET 4.0 Webforms are going to make using jQuery much easier in the past, because you will have more control of how controls get named when they are rendered to HTML.

#1

I'm working on a project with a lot of UpdatePanel and jQuery, things just work fine.

Yes, it is a period when you need to learn, to make things work.

If you have a lot of UpdatePanels and you don't want to remove them then this is understandable, and using jQuery is just improving the UI, so it's not going to much worse.

Also jQuery has functionalitys related to AJAX,so you can make elegant client side coding with jQuery which is not related to Design and ui stuff.

I think if you search for jQuery and Ajax on the internet you will find a bunch of good examples, and fine techniques to both technologies together.

PS:

  • Remenber that UpdatePanel is evil in sort of way when you are using in an inappropriate way.

  • UpdatePanel is (and generally AJAX) is very customizable, make time for yourself to optimize it

Good luck!

#2

We use Microsoft AJAX (only using UpdatePanels) and jQuery and all works great.

Using UpdatePanels makes all UserControls, Postbacks, Viewstate etc work as you would expect with the UI enhancements of jQuery. There are a few things to learn in getting them to work together and until we find an alternative we will continue to do this. We think its worth it.

I would be keen to see how UpdatePanels can be easily replaced with jQuery, but I expect one would need to write additional code for each UpdatePanel replacement, rather than letting asp.net handle things? Are there any articles out there that demonstrate replacing UpdatePanels that contain asp.net controls and UserControls with events etc?

推荐文章

lua中函数为什么有时候可以省略”()”?

lua中函数为什么有时候可以省略”()”?

推荐文章

第一个go程序

第一个go程序

推荐文章

SourceInsight 增加对Lua语言的支持

SourceInsight 增加对Lua语言的支持

推荐文章

搭建vue脚手架

搭建vue脚手架

推荐文章

【Go web开发之revel+mgo】第6章 实现留言板功能

【Go web开发之revel+mgo】第6章 实现留言板功能

推荐文章

Lua学习笔记--table

Lua学习笔记--table

推荐文章

golang 解析磁力链为 torrent 相关的信息

golang 解析磁力链为 torrent 相关的信息

推荐文章

设计模式实例(Lua)笔记之五(Prototype 模式)

设计模式实例(Lua)笔记之五(Prototype 模式)

推荐文章

golang 1.2.1在生产环境中应用应该注意的问题

golang 1.2.1在生产环境中应用应该注意的问题

推荐文章

运维rpm语法

运维rpm语法

推荐文章

设计模式实例(Lua)笔记之五(Bridge模式)

设计模式实例(Lua)笔记之五(Bridge模式)

推荐文章

在 Go 语言中,正确的使用并发

在 Go 语言中,正确的使用并发

推荐文章

设计模式实例(Lua)笔记之六(Adapter模式)

设计模式实例(Lua)笔记之六(Adapter模式)

推荐文章

node js 异步运行流程控制模块Async介绍

node js 异步运行流程控制模块Async介绍

推荐文章

lua os库-时间函数

lua os库-时间函数

推荐文章

Go语言 系统监控常用工具

Go语言 系统监控常用工具