Sunday, March 4, 2018

[MVC5] Redirecting from a static HTML page.

Hi, I am making a webApp on MVC5 and I have a custom 404.html page. I'm trying to add a button on that page that says "Go Back" or "Home" etc. Is it possible to somehow redirect the to /Home/Index when the user clicks that button? I can do it like this:

 <a href="www.mysite.com" class="btn btn-primary">Go Back</a> 

But im wondering if there is a better way to do it. ty!

[MVC5] Redirecting from a static HTML page. Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team