關於部落格
詐欺者
  • 3792

    累積人氣

  • 0

    今日人氣

    0

    追蹤人氣

[ASP.NET]動態新增TextBox並存資料

Dim txtBox as TextBox Dim i,n as Integer Sub Page_Load(sender as Object,e as System.EventArgs) n=Val(tBox1.text) for i=1 to n txtBox = New TextBox txtBox.ID = "txtBox" & i.tostring txtbox.Width = Unit.Pixel(40) placeholder1.Controls.Add(txtBox) next End Sub Sub button1_click(sender as Object,e as EventArgs) n=Val(tBox1.text) for i=1 to n txtBox =placeholder1.FindControl("txtBox" & i.tostring) Response.write(txtBox.text) next End Sub
相簿設定
標籤設定
相簿狀態