更新时间:2023-02-25 16:54:58
远离UpdatePanel的概念都在一起。
Stay away from the UpdatePanel concept all together.
ASP.NET MVC包括jQuery的,这是完全由微软现在支持。您将要创建的局部视图(的RenderPartial),使通话回到控制器上的一个方法,返回JSON。
ASP.NET MVC includes jQuery, which is fully supported by Microsoft now. You will want to create partial views (RenderPartial) that make calls back to a method on a controller, that returns JSON.
然后,使用jQuery要连接的控制和局部视图。
Then, use jQuery to wire up the control and partial views.
jQuery是一个非常强大的JavaScript库。我强烈推荐书的jQuery在行动a>的参照系,以潜入ASP.NET MVC /脚本/ jQuery的-xxxjs文件。 :)
jQuery is an extremely powerful javascript library. I highly recommend the book jQuery in Action as a reference when diving into the ASP.NET MVC /Scripts/jquery-x.x.x.js files. :)