I have a table which is dynamically created based on the amount of results returned.
In each row there is a cell (created from c# code) with a textbox like
"<input id='textbox" + i + "'type='text'/>”
so textbox0, 1, 2, etc.
My question is, how to obtain each textbox’s value in the c# code, after a user inputs something?
i.e you can’t just go textbox1.Text to get the value since the code behind page has no idea what textbox1 is.
First of all, you should specify a unique name for your inputs :
then at server side you can get each textbox’s value by this name :