示例#1
0
        protected void btnXoa_Click(object sender, EventArgs e)
        {
            //String content = "<html><body><table><tr><td>your table</td></tr></table></body></html>";

            //Response.Clear();
            //Response.AddHeader("Content-Disposition", "attachment;filename=C:\abc.xls");
            //Response.ContentType = "application/vnd.xls";
            //Response.Cache.SetCacheability(HttpCacheability.NoCache); // not necessarily required
            //Response.Charset = "";
            //Response.Output.Write(content);
            //Response.End();
            if (GridUser.FocusedRowIndex > -1)
            {
                DM_USER        sysUser  = (DM_USER)GridUser.GetRow(GridUser.FocusedRowIndex);
                DM_USERService isysUser = new DM_USERService();

                isysUser.DeleteDM_USER(sysUser);
                GridUser_CustomCallback(null, null);
            }
        }