在網頁上新增元件
For i = 1 To 4
    Dim txtCount As New TextBox
    txtCount.ID = "txtCount" & i
    Page.Controls.Add(txtCount)
Next

在網頁上取得元件
For i = 1 To 4
    Dim txtCount As TextBox = CType(Page.FindControl("txtCount" & i), TextBox)
Next

goodlucky 發表在 痞客邦 PIXNET 留言(0) 人氣()