我正在將數據庫表中的 id 號列表讀取到占位符文本框中,但是;如果我做一個按鈕點擊數據被刪除。 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 關注
- 163 瀏覽
添加回答
舉報
0/150
提交
取消