TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Yogesh Vedpathak
682
1.4k
192.3k
Redirect To Static Html Page
Dec 25 2017 3:59 AM
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();
}
}
}
Reply
Answers (
2
)
How to integrate Facebook & google for Login with websites ?
3D in c# windows form