그래서, DotNetOpenAuth의 예제에서 나는 aspx에 양식을 가지고 있습니다 :Razor 표기법의 아날로그는 무엇입니까?
<form action="Authenticate?ReturnUrl=<%=HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]) %>" method="post" id="openid_form" %>
</form>
그리고 그 면도기에서 aspx의 유사점은 무엇입니까?
@using (Html.BeginForm(---???---)) {}
--- 업데이트 ---
제안 해 주셔서 감사합니다. 대답은 다음과 같습니다.
@using (Html.BeginForm("Authenticate", "Account", FormMethod.Post,
new { target = "_top", id = "openid_form" })){}
1.'Url.Encode'에'HttpUtility.UrlEncode'를 사용하는 이유는 무엇입니까? 2. 인증이 MVC 작업 방법인지 여부를 명확히해야합니다. – adamjford
@adamjford, 2. 예, MVC 작업 및 MVC 태그 태그. – FFire