detailview状态设置
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Params["id"] == null)
{
this.dvBookList.DefaultMode = DetailsViewMode.Insert;
}
}
{
if (Request.Params["id"] == null)
{
this.dvBookList.DefaultMode = DetailsViewMode.Insert;
}
}