我正在將數(shù)據(jù)庫(kù)表中的 id 號(hào)列表讀取到占位符文本框中,但是;如果我做一個(gè)按鈕點(diǎn)擊數(shù)據(jù)被刪除。 protected void btnSearch_Click(object sender, EventArgs e) { while (myReader.Read()) { TextBox txt = new TextBox(); txt.Text = (string)myReader["idNumber"]; txt.ID = "txt" + i; txt.ReadOnly = true; ContentPlaceHolder1.Controls.Add(txt); ContentPlaceHolder1.Controls.Add(new LiteralControl(" ")); i++; }}
- 1 回答
- 0 關(guān)注
- 167 瀏覽
添加回答
舉報(bào)
0/150
提交
取消