How to access the value of a textbox in a dynamically created HtmlTable
Posted on 2004-10-04
This is probably pretty simple but...
I am dynamically adding rows to a HtmlTable that contain Textbox controls. (There may be more than one server control/textbox in a given cell)
How do I get the value of a textbox when the form is posted back?
I would expect something like:
TextBox t = (TextBox)Table1.Rows.Cells.Controls;
String s = t.Text;
(I may be using the controls colletion incorrectly...)
Or at least that is the kind of solution I'm looking for...