Public class ItemController : Controller
{
public ActionResult Index()
{
return View("Index");
}
public ActionResult ItemDescription()
{
return View("ItemIndex");
}
}
지금이 항목 폴더리디렉션 asp.net MVC 컨트롤러 액션 메소드에서 발생하지
뷰 1에서 두 개의 뷰는
itemIndex라는
@{
ViewBag.Title = "ItemIndex";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>ItemIndex</h2>
<input type="button" value="Next" onclick="redirecttodetails()" />
<script type="text/javascript">
function redirecttodetails()
{
$.ajax({
url: '@Url.Action("Index", "Item")',
type: 'POST'
});
}
</script>
을 itemIndex라는
이제는 ItemIndex보기에 빨간색으로 표시 할보기를 클릭하여 단추가 있습니다. 색인보기로 어떤 일도 일어나지 않습니다.
제안 사항?
@ user2465036, 기꺼이 도와 드리겠습니다. – Satpal