Reading controls within a table cell

D

Damian

Hi !

I am an ASP.NET Newbie.
I have built a System.Web.UI.HtmlControls.HtmlTable dynamically
and added rows and cells and added two text box controls to the two
cells ( table is 3 columns wide for each row but first column has some
text in it not a text box)
I have two buttons added to the table as well (save and cancel )in the
last row in two cells.
I then bound the table with the form.

I want to be able to read the contents of each row (i.e. the data in
the two text boxes)in the click event as these two cells need to be
updated in the database.

How can i reference the table, then row then cell in the btnSave_Click
event?
I assume i need to do a for...each next loop but not sure what i
should be looping through.

Any help would be appreciated

Thanks
Damian
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top