Exemplo n.º 1
0
 protected void gvHostInfo_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     host.HostName = gvHostInfo.DataKeys[e.RowIndex].Value.ToString();
     if (HostManager.deleteHost(host) != 0)
     {
         Response.Write("<script language=javascript>alert('删除成功!')</script>");
     }
     else
     {
         Response.Write("<script language=javascript>alert('删除失败!')</script>");
     }
     gvBind();
 }