2
나는 당신이 가정은 "목록"보기합격 값이
cshtml 파일
@Html.RadioButtonFor(m => m.SmokeHouse, 1)
@Html.RadioButtonFor(m => m.SmokeHouse, 0)
@Html.RadioButtonFor(m => m.SmokeCar, 1)
@Html.RadioButtonFor(m => m.SmokeCar, 0)
@Html.RadioButtonFor(m => m.SmokeWork, 1)
@Html.RadioButtonFor(m => m.SmokeWork, 0)
[HttpPost]
public ViewResult SmokingEnvironments()
{
return View("List");
}
클래스
public class Screen
{
public int SmokeCar { get; set; }
public int SmokeHouse { get; set; }
public int SmokeWork { get; set; }
}
보기가 결과라는 다른 폴더에 있다면? – user2224493
@ user2224493 그게 무슨 뜻입니까? – asawyer
돌아 가기보기 ("~/Views/Results/List.aspx", model); – user2224493