6
私はindex.cshtmlでこれを持っている:ascxと.cshtmlの違いは何ですか?
私のコントローラで@{
ViewBag.Title = "Home Page";
}
@{
Html.RenderPartial("~/Views/Home/Test.cshtml");
}
と、この:
[ChildActionOnly]
public ActionResult Test()
{
return View();
}
私はでた.ascxと.cshtmlを使用しての基本的な違いが何であるかを理解することはできませんよRenderPartialメソッド?どちらも私のために働く。本当の違いは何ですか?誰でも説明できますか?