ext:GridPanel 事件觸發

後台: [AjaxMethod] public void delete_CurInfoByID(string id) { Session["id"] = id; Ext.Msg.Confirm("確認", "確定刪除該條信息麼?", new MessageBox.ButtonsConfig { Yes = new MessageBox.ButtonConfig { Handler = "Coolite.AjaxMethods.OKdelete_CurInfoByID( );", Text = "确 定" }, No = new MessageBox.ButtonConfig { Text = "取 消" } }).Show(); } [AjaxMethod] public void OKdelete_CurInfoByID() { string id = Session["id"].ToString().Trim(); bool bl = (UDMS.BLL.InventorInfo.InventorInfo.delInvDraftBycurID(id) ? true : false); string msg = (bl ? "刪除成功!" : "刪除失敗"); Ext.Msg.Alert("提示", msg).Show(); GetMyDraftList(); } protected void Command_Click(object sender, AjaxEventArgs e) { if (e.ExtraParams["command"] != null) { string command = e.ExtraParams["command"].ToString().Trim(); if (command == "DetailInfo") { string str = e.ExtraParams["url"].ToString().Trim() + "&Returnurl=../Current/Draft.aspx"; Response.Redirect(str); } } } /// /// 雙擊事件 /// /// /// protected void Row_DbClick2(object sender, AjaxEventArgs e) { if (e.ExtraParams["url"] != null) { string str = e.ExtraParams["url"].ToString().Trim() + "&Returnurl=../Current/Draft.aspx"; Response.Redirect(str); } }

你可能感兴趣的:(ext:GridPanel 事件觸發)