Dim txt() As String = {"TextBox1", "TextBox2", "TextBox3", "TextBox4"} Dim txt1(txt.Length) As TextBox For i As Integer = 0 To txt.Length - 1 txt1(i) = form1.FindControl(txt(i)) txt1(i).Text = i Next
沒有留言:
張貼留言