Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Reading controls within a table cell

Thread Tools

Reading controls within a table cell

Posts: n/a
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
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

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
TextBox Within Table Wider Than Cell =?Utf-8?B?QW5kcmV3IEhheWVz?= ASP .Net 3 09-28-2007 08:36 AM
how do i show/hide a div within a table cell properly? Susanne West HTML 4 11-15-2006 04:38 PM
how do I refer to a table cell within a CheckBoxList? MattB ASP .Net 1 10-11-2006 11:57 PM
IE behavior with right align Table within cell HTML 0 07-15-2006 08:41 PM
How do I have a table cell fetch another page to display within the cell? Phillip Roncoroni HTML 14 04-05-2004 05:58 PM