I use this code to return an string from my action :
public ActionResult Index()
{
string List = "";
List = "<table><tr><td>Ali</td></tr></table>";
ViewData["List"] = List;
return View();
}
and this is my view :
<body>
<%: ViewData["List"] %>
</body>
but instead to create a table when i browse the page , i see that the string "<table><tr><td>Ali</td></tr></table>"
wrote on it. I use the firebug and see its html code . but i saw something like this :
<table><tr><td>Ali</td></tr></table>
Is there any body out there to help me?
Thansk Regards