protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     string expert = GridView1.DataKeys[e.RowIndex].Values[0].ToString();
     Expert ed = new Expert();
     if (ed.Del(expert))
     {
         Response.Write("<script>alert('删除成功!');window.location=window.location;</script>");
     }
     else
     {
         Response.Write("<script>alert('删除失败!');window.location=window.location;</script>");
     }
 }
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        string expert = GridView1.DataKeys[e.RowIndex].Values[0].ToString();
        Expert ed     = new Expert();

        if (ed.Del(expert))
        {
            Response.Write("<script>alert('删除成功!');window.location=window.location;</script>");
        }
        else
        {
            Response.Write("<script>alert('删除失败!');window.location=window.location;</script>");
        }
    }