VB Repeaters and Textboxes

Made your repeaters hidden and then you get an index error within Visual Studio?

1. The repeater needs to be visible to bind data to the textboxes.
2. You cannot extract text from a textbox repeater once the website is running. - The way around this is to copy the contents of the textbox repeater to another textbox object. You can also use validation instead of manually creating validation as textboxes within repeater controls are not visable and the find control code has to be utilized. See code below to extract contents of textbox within repeater. Change name of textbox control to read contents of a button control.
rptYourRepeater.Items[0].FindControl("txtYourTextBox")

Comments

Popular posts from this blog

Create bootable CUC CUCM CUP Image / ISO

Configuring Oracle 12c backups on Veritas Backup Exec 16.

CUCM 11.5 - Esxi 6.5 - unable to create VM