VB.NET

Moderators: seancampbell
Number of threads: 3883
Number of posts: 9849

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Help::Automatic textbox generation Posted by thushara on 12 Nov 2009 at 8:25 AM
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



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.