ASP.NET MVC 动态加载 *.ascx

2020-11-24 03:22

阅读:783

标签:style   java   ext   javascript   color   art   

Controller中:


        public ActionResult LoadFoo()
        {
             return PartialView("Foo", aModel);
        }

Javascript:

    function loadFoo() {
        $.ajax({
            url: "LoadFoo",
            success: function(data) {
                $(‘#div‘).html(data);
            },
            error: function() {
                $(‘#div‘).html(‘Failed to load Foo.‘);
            }
        });
    }

ASP.NET MVC 动态加载 *.ascx,搜素材,soscw.com

ASP.NET MVC 动态加载 *.ascx

标签:style   java   ext   javascript   color   art   

原文地址:http://www.cnblogs.com/sungang3225/p/3703631.html


评论


亲,登录后才可以留言!