private void ShowData()
    {
        string  a       = Session["stuId"].ToString();
        DataSet dataset = WrongTkManager.LoadPart(k, g, a);

        GridView1.DataSource   = dataset;
        GridView1.DataKeyNames = new string[] { "Tid" };
        GridView1.DataBind();
        lblWTnum.Text = WrongTkManager.Wrongnum(a, g).ToString();
        ddlTitleType.SelectedValue = "1";
    }
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        int id = Convert.ToInt32(GridView1.DataKeys[e.RowIndex].Value);
        int n  = WrongTkManager.delectTitle1(id);

        if (n > 0)
        {
            //Response.Write(string.Format("<scrip type= 'text/javascript'> alert('成功删除数据,有{0}行被删除!'); </script>", n.ToString()));
            RegisterClientScriptBlock("", string.Format("<scrip type= 'text/javascript'> alert('成功删除数据,有{0}行被删除!'); </script>", n.ToString()));
        }

        ShowData();
    }