本文主要實驗如何應用Asp
這裡
public class Book
{
public int BookId { get; set; }
public string BookName { get; set; }
public string Author { get; set; }
public DateTime PublishedDate { get; set; }
}
假設現在需要實現添加Book的功能
[AcceptVerbs(HttpVerbs
public ActionResult Create(Book book) {
//TO DO
//Insert book into Database
return RedirectToAction(
}
現在的問題便是
<div>
<%using (Html
<div>
Book Name: <%=Html
</div>
<div>
Author: <%=Html
</div>
<div>
Published Date: <%=Html
</div>
<div>
<input type=
From:http://tw.wingwit.com/Article/program/net/201311/11878.html