tags:

views:

58

answers:

2

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
what if i want this file in the same directory as my other Views ?
ooo
No problem. Place them into Views folder and use Url.Content(~/Vievs/.../Page1.html)
Roman
A: 
public ActionResult SomeOtherPage()
{
   return Redirect("/Some/Page.htm");
}

Hope that helps,

Dan

Daniel Elliott