查看: 683|回复: 4
|
ASP.net While
[复制链接]
|
|
请问一下 我用了 while 的 coding 来 add new textbox
但是 我要如何运用code insert data to database?
Sql Query link 不到 new textbox id,我这样对吗?
this.readline.Controls.Add(new TextBox { CssClass = "dialog" ,ID= "txt" + numTxt});
//numTxt ++
|
|
|
|
|
|
|
|
发表于 16-6-2014 03:50 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 17-6-2014 08:10 PM
|
显示全部楼层
運行的環境是 Windows forms ? 還是 asp.net, CssClass 是 asp.net, 那麼你的 readline 是什麼呢? 樓上+1, 我們須要多一點源碼才能協助. |
|
|
|
|
|
|
|
楼主 |
发表于 18-6-2014 10:39 AM
|
显示全部楼层
hanching 发表于 16-6-2014 03:50 PM
可以看看你的code吗?不明白
谢谢你们哦 问题已经解决了
|
|
|
|
|
|
|
|
楼主 |
发表于 18-6-2014 10:40 AM
|
显示全部楼层
xtjj 发表于 17-6-2014 08:10 PM
運行的環境是 Windows forms ? 還是 asp.net, CssClass 是 asp.net, 那麼你的 readline 是什麼呢? 樓上+1, ...
谢谢你们哦 问题已经解决了
|
|
|
|
|
|
|
| |
本周最热论坛帖子
|