ASP.NET 17

ASP.NET MVC 3 View 추가하기

ASP.NET MVC 3 View 추가하기 Visual studio 2010 express 버전 Test0821.Controllers 코드 수정using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace Test0821.Controllers{ public class Test0821Controller : Controller { // // GET: /Home/ // public ActionResult Index() //{ //return View(); //} // 홈페이지상에서 보여질 문구 //public string Index() //{ //return "안녕하세요?a..

ASP.NET/MVC 3 2018.08.23

ASP.NET MVC 5 기본

프로젝트 생성 Controller 추가하기 ! 컨트롤러 생성 시, 자동으로 스캐폴딩(CRUD 자동생성) 해줌 방금 생성한 HelloWorldController 소스 변경 using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc;namespace MvcMovie.Controllers{ public class HelloWorldController : Controller { // GET: HelloWorld public string Index() { return "This is my default action.."; } // // GET : /HelloWorld/Welcome/ publ..

ASP.NET/MVC 5 2018.07.20

MVC vs Web Form ? 그리고 MVC 버전 별 차이

MVC vs Web Form? 그리고 MVC 버전 별 차이 ASP.NET Web Forms 및 ASP.NET MVC의 호환성Visual Studio 2010ASP.NET에 익숙한 개발자는 ASP.NET MVC 응용 프로그램을 만들 때 ASP.NET에 대한 지식 중 많은 부분을 활용할 수 있습니다. ASP.NET MVC는 ASP.NET 프레임워크의 일부로 제공되기 때문에 ASP.NET 네임스페이스, 클래스 및 인터페이스 대부분을 MVC 응용 프로그램에서 사용할 수 있습니다.이 항목에서는 ASP.NET Web Forms의 장점과 ASP.NET MVC 모델의 장점 모두에 대해 설명합니다. 그런 다음 ASP.NET 프레임워크 기능 중 MVC 응용 프로그램에서 사용 가능한 기능 및 사용하지 않아야 하는 기능에 대..

ASP.NET 2018.07.19

.NET MVC 3를 이용한 기본 Controller 생성, View 템플릿 추가하기, 모델 이용하기, 페이지들 간의 링크 추가하기

비쥬얼 스튜디오 버전 :: Visual Studio 2010 Web Developer Express .NET MVC 3 다운로드 사이트 :: https://www.microsoft.com/ko-kr/download/details.aspx?id=4211 # .NET MVC 3를 이용한 기본 Controller 생성 1. Test02 라는 프로젝트 생성 (기본값으로 생성) HomeController 생성 => Solution Explorer 안의 Controllers 우클릭 -> Add -> Controller 클릭 HomeController 소스 변경 public string Index(){ return "Hello from Home";} StoreController 생성 (기본값) StoreControl..

ASP.NET/MVC 3 2018.07.19

.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