Dynamically create textbox depending on Table column's data length

The attached code demonstrates how to create a TextBox dynamically depending on a database table's column data length.