If you have a PH account, you can customize your PH profile.

VB.NET

Moderators: seancampbell
Number of threads: 3618
Number of posts: 9200

This Forum Only
Post New Thread

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



 
Popular resources and forums for programmers on Programmersheaven.com
Assembly, Basic, C, C#, C++, Delphi, Java, JavaScript, Pascal, Perl, PHP, Python, Ruby, Visual Basic
© Copyright 2009 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.
Publisher: Lars Hagelin. Read the latest words from the publisher here.
Be the first to sign up for Lars Hagelin’s In-depth Outsourcing Newsletter here.
bootstrapLabs Logo A bootstrapLabs project.