detailview状态设置

protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Params["id"] == null)
        {
            this.dvBookList.DefaultMode = DetailsViewMode.Insert;
        }
    }
posted @ 2008-11-14 13:04  Edward Xie  阅读(363)  评论(3编辑  收藏  举报