3
내 버튼이 내 초소형 학습 ASP.Net MVC 애플리케이션에서 포스트 백을 거부하는 이유는 무엇입니까?버튼이 다시 게시되지 않습니다
~/블로그/Post.aspx
<h2>Post</h2>
<fieldset>
<legend>Blog message</legend>
<%using (Html.BeginForm())
{ %>
<p>
<label for="EntryTitle">Title:</label><br />
<%= Html.TextBox("EntryTitle") %>
</p>
<p>
<label for="EntryMessage">Message:</label><br />
<%= Html.TextArea("EntryMessage") %>
</p>
<p>
<input type="button" value="Post!" />
</p>
<%} %>
</fieldset>
~/컨트롤러/BlogController.cs 나는 그것을 얻지 않는다
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Post(FormCollection collection)
{
return View();
}
, 내가 무엇을 생각합니다 있어야 할 곳에 없는? : o
/마른 세수가 지금은 당황 :(그러나 감사합니다 :) – HerrLiljegren
우리 모두는 그것을 할! 기꺼이 도와주세요. =) –