Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SUDDEN FAILURE with Dynamic Textboxes!!

Status
Not open for further replies.

JaneB19

Technical User
Jun 27, 2002
110
GB
Hi,

All of a sudden the following code has decided that it is only going to create 1 textbox, regardless of what radioButton is selected! The maximum number of textboxes is 12.

Dim ctr As Integer

'Loop to create textboxes dynamically depending
'on the value selected in the "No_Letters" RadioButtton List

For ctr = 1 To No_Letters.SelectedValue Step 1

'Genereate Text Box
tmpTxtBox.ID = "txtBox" & ctr

'Add text box to placeholder
PlaceHolder1.Controls.Add(tmpTxtBox)

Next


Hope somebody can help?
Thanks in advance
Jane :)
 
It's ok,

I changed the code and they're working again.

Still don't understand why they suddenly stopped!

Jane :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top