protected void Page_Load(object sender, EventArgs e)
    {
        SqlConnection con = new SqlConnection("server=(local);database=QuerySystemDB;uid=sa;password=sa");
        SqlDataAdapter da = new SqlDataAdapter("DELETE FROM LoginTable WHERE UserName = '"+TextBox1.Text+"'", con);
        DataSet ds = new DataSet();
        da.Fill(ds, "LoginTable");
        DataTable dt = ds.Tables["LoginTable"];
        this.GridView1.DataSource = dt.DefaultView;//未将对象引用设置到对象的实例。
        this.GridView1.DataBind();
    }
我不知道那儿应该怎么改,请大家帮我看看