Hi guys
My english very terrible, so i cant explain very clear. I will try my best.
is it possible to generate HTML code from within ASP.NET MVC, please?
This is Controller
public class HomeController : Controller
{
public ActionResult Index()
{
ViewData["Message"] = "Hello ASP.NET MVC!";
ViewData["author"] = "Author: Alex";
return View();
}
This is Views, It's a template.
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
title
<%: ViewData["Message"] %>
<%=ViewData["author"]%>
<%=Html.ActionLink("This is a link.", "Index", "About") %>I want to use this template generate html file.
Have a nice day,
Alex