int QueryID=3; string idStr=TextBox2.Text.Trim(); QueryID=Convert.ToInt32(this.Request.QueryString["ID"]); if(QueryID<0||TextBox2.Text.Trim()!="")return; string mySelectQuery = "SELECT ID,Title,Content FROM myBBS where id="+QueryID;
SqlCommand myCommand = new SqlCommand(mySelectQuery,coreDB);