if(this.delId!=0)
{
SqlConnection Conn=new SqlConnection(System.Configuration.ConfigurationSettings.AppSettings.Get("DataConnectionString").ToString());
Conn.Open(); string StrSql = "Delete From TQbTypeList Where TQId="+this.delId;

SqlCommand Cmd =new SqlCommand(StrSql,Conn);
Cmd.ExecuteNonQuery(); Cmd.Dispose();
Conn.Close(); Response.Redirect("TQqTypeList.aspx");
} if(!this.IsPostBack)
{
if(this.modId==0)
{
this.TQbType.Text = "";
this.QTypeOrder.Text = "";
this.TQId.Text = "0"; this.Button1.Text = "添加";
}
else
{ this.TQbType.Text = Request.QueryString["TQbType"];
this.QTypeOrder.Text = Request.QueryString["QTypeOrder"];
this.TQId.Text = this.modId.ToString(); this.Button1.Text = "修改";
} ShowTQqTypeList();
} public string GetMod(object TQId,object CltType,object CltTypeOrder)
{
string strRtn=""; strRtn = "<a href='TQqTypeList.aspx?modId="+TQId.ToString().Trim()+"&TQbType="+Server.UrlEncode(TQbType.ToString().Trim())+"&QTypeOrder="+QTypeOrder.ToString().Trim()+"'>修改</a>"; return strRtn;
}每次点修改时,
this.QTypeOrder.Text值为:System.Web.UI.WebControls.TextBox
??