How to Redirect From Asp.net Mvc To Html Page
code is below
When I want click button Contact It will Redirect to Html Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Sendsms.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
return View();
}
public ActionResult About()
{
return RedirectToRoute("About.html");
}
public ActionResult Contact()
{
var staticPageToRender = new FilePathResult("~/Html/index.html", "text/html");
return staticPageToRender;
// return View();
}
}
}


Yogesh VedpathakRank #1,179 · 1.5K reputationPosted Dec 25, 2017, 6:15 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Dec 25, 2017, 12:03 AM EST