我需要像这样的字符串渲染视图:
public class Controller : System.Web.Mvc.Controller
{
public ViewResult ViewList()
{
string html = "<div id=\"contentView\">";
html += Title(null);
html += GridControls(null);
html += FilterControls(null);
html += Grid(null, new Sibi.Seg.User().List(pagina));
html += "</div>";
return View(html );
}
}
然后我需要在 Controller 中的 return View() 上渲染这个字符串,看看它:
public ActionResult Index()
{
return ViewList();
}