is ajax.beginform obsolete
I read this and I would like to know if Ajax.BeginForm
is ob开发者_开发问答solete
Thank you
Well, it's not obsolete, but Darin in the question you have linked to feels strongly against using it.
Personally, MVC 2's client side solution in some ways feels like a mixed bag and I can only surmise that this is because Microsoft fully embraced jQuery as the JavaScript library after effort had been put in to writing all the AJAX helpers using the MS AJAX library. I've found that you need to plug in the jQuery stuff that you need to use with MVC 2 as the framework primarily focused on using MS AJAX. A perfect example of this is client side validation; whilst the MVC Futures contained a jQuery validation "glue" script to hook the outputted meta data up to the jQuery validation plugin, in a lot of ways it was rough and unpolished (about 15 functions in global scope for a start!); I guess that's why it was in futures :)
Thankfully that has changed in MVC 3, which puts jQuery at the forefront of the client side solution.
精彩评论