コード例 #1
0
ファイル: Conferenceroom.aspx.cs プロジェクト: chiuchiuJ/JUIC
        protected void GridView3_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            JuicDao dao = new JuicDao("MENU");

            if (e.CommandName == "del")
            {
                var    name  = dao.conferdel(e.CommandArgument.ToString().Trim());
                string strJS = "alert('刪除成功');location.href = ('Conferenceroom.aspx');";
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", strJS, true);
            }
            if (e.CommandName == "back")
            {
                var    name2 = dao.conferback(e.CommandArgument.ToString().Trim());
                string strJS = "alert('以現在時間提前歸還');location.href = ('Conferenceroom.aspx');";
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", strJS, true);
            }
        }