protected void Page_Load(object sender, EventArgs e) { BindView(); string usersname; if (!IsPostBack) { try { if (Request.QueryString["usersname"] != null) { usersname = Request.QueryString["usersname"].ToString(); UsersBll.delete(usersname); BindView(); Page.ClientScript.RegisterClientScriptBlock(typeof(Object), "alert", "<script>alert('删除成功!');</script>"); } } catch (Exception ex) { Response.Write("错误原因:" + ex.Message); } } }