가정 너한테는 같은 수업이 있어 다음:
public class ItemController:Controller<br>{</p> <div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:php;toolbar:false">public ActionResult Login(int id) { return View("Hi", id); }
}
항목에 없는 페이지에서 로그인 방법에 대한 링크를 만들고 싶은 경우 ItemController가 있는 폴더에서 다음 매개변수와 함께 HTML.ActionLink 메소드를 사용할 수 있습니다:
< pre>Html.ActionLink(article.
위 내용은 HTML.ActionLink를 사용하여 다른 컨트롤러의 메서드에 연결하는 방법은 무엇입니까?의 상세 내용입니다. 자세한 내용은 PHP 중국어 웹사이트의 기타 관련 기사를 참조하세요!