.NET MVC 4를 이용한 기본 프로젝트 생성하기 2 (Controller 테스트) TestController에서 Index()값 변경 namespace MvcApplication2.Controllers{ public class TestController : Controller { // // GET: /Test/ public string Index() { return "This is Test Controller page."; } }} 저장 후 Ctrl + F5 Url = localhost:xxxxx/Test 입력 ASP.NET/MVC 4 2018.07.17
.NET MVC 4를 이용한 기본 프로젝트 생성하기 1 (프로젝트 생성 및 Controller 생성) 버전 : Visual Studio 2010 & .NET MVC 4Visual Studio 2010 Web Developer를 켠 후 새 프로젝트 생성 1 위와 같은 창이 뜨면, ASP.NET MVC 4 Web Application 클릭 후 원하는 파일명 및 폴더명 써준 후 'OK' 클릭 새 프로젝트 생성 2 'OK' 버튼 클릭 새 프로젝트 생성 완료 테스트용 Controller 생성 1 Solution Explorer에서 Controllers 폴더 우클릭 -> Add -> Controller 클릭 테스트용 Controller 생성 2 원하는 컨트롤러명 입력 후 Add 클릭 Controller 생성완료 ASP.NET/MVC 4 2018.07.17