开发者

How do I render an Editor Template in MVC2 via an Ajax request

开发者 https://www.devze.com 2023-02-05 00:26 出处:网络
I have 开发者_如何学运维a controller that simply needs to return a template in my EditorTemplates\\ folder.

I have 开发者_如何学运维a controller that simply needs to return a template in my EditorTemplates\ folder.

How do I do this?


return View("~/Views/Shared/EditorTemplates/SomeTemplate.ascx", theModel);
0

精彩评论

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