is there anyway to do this? if so what would the controller code look like to point to a specific html file instead of a MVC View?
+2
A:
You do not need any Controller code for static HTML page. All you need, add link to HTML page in necessary View (<a href="<%=Url.Content(~/Html/Page1.html)%>">Link to html page</a>)
Roman
2009-08-18 08:15:29
what if i want this file in the same directory as my other Views ?
ooo
2009-08-18 08:37:42
No problem. Place them into Views folder and use Url.Content(~/Vievs/.../Page1.html)
Roman
2009-08-18 12:04:38
A:
public ActionResult SomeOtherPage()
{
return Redirect("/Some/Page.htm");
}
Hope that helps,
Dan
Daniel Elliott
2009-08-18 08:21:25