Sub textbox1_textchanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
Dim count As Integer
Dim t As New TextBox
For count = 4 To 6
MsgBox("vbbvbnv")
t.Text = "TextBox" & count.ToString()
t.ID = "TextBox" & count.ToString()
Panel1.Controls.Add(t)
count = count + 1
Next count
end sub
ERROR::::Multiple controls with the same ID 'TextBox6' were found. FindControl requires that controls have unique IDs.
Description: An unhandled exception occurred during the execution of the current web request.How Can i Rectify this