如何将ViewResult作为字符串? 例如,当用户进行webrequest时,我可以返回如下页面:
return View("/helloworld");
但是我想把它作为一个字符串并用它做一些事情,例如:
string webpage = View("/helloworld").ToString(); //Get the ViewResult as a string.
// {...} do something with the webpage string.
return Content(webpage); //Now return it as you normally would
有可能吗?