Reading controls within a table cell

Discussion in 'ASP .Net Web Controls' started by Damian, Aug 6, 2004.

  1. Damian

    Damian Guest

    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
     
    Damian, Aug 6, 2004
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Table in a cell of another table

    Mark Goldin, Aug 19, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    424
    Mark Goldin
    Aug 19, 2004
  2. MattB
    Replies:
    1
    Views:
    736
    Unfettered
    Oct 12, 2006
  3. Phillip Roncoroni
    Replies:
    14
    Views:
    1,363
    Toby A Inkster
    Apr 5, 2004
  4. Replies:
    0
    Views:
    633
  5. Susanne West
    Replies:
    4
    Views:
    1,581
    Susanne West
    Nov 15, 2006
  6. =?Utf-8?B?QW5kcmV3IEhheWVz?=

    TextBox Within Table Wider Than Cell

    =?Utf-8?B?QW5kcmV3IEhheWVz?=, Sep 27, 2007, in forum: ASP .Net
    Replies:
    3
    Views:
    586
    Just Me
    Sep 28, 2007
  7. sdf
    Replies:
    3
    Views:
    2,410
  8. Reply Via Newsgroup

    Reading data from table cell or IFRAME

    Reply Via Newsgroup, Mar 4, 2004, in forum: Javascript
    Replies:
    1
    Views:
    149
    Randy Webb
    Mar 5, 2004
Loading...