ASP.NET/MVC 4

.NET MVC 4를 이용한 기본 프로젝트 생성하기 2 (Controller 테스트)

littlemk 2018. 7. 17. 16:28

  1. TestController에서 Index()값 변경

namespace MvcApplication2.Controllers
{
    public class TestController : Controller
    {
        //
        // GET: /Test/
        public string Index()
        {
            return "<h1>This is Test Controller page.</h1>";
        }
    }
}



  1. 저장 후 Ctrl + F5 



  1. Url = localhost:xxxxx/Test 입력