Can ASP.Net directly reference a table's cell?

Discussion in 'C#' started by JEP_Dude, Mar 30, 2009.

  1. #1
    Hey there.

    Is is possible for ASP.Net to place a new button while assigning its size and ID into a blank cell of a table? What command, or commands, should be used to directly reference the row and column of an empty cell of a table?

    If you know how I could do this, would you please give the answer in ASP-VB because I'm new to this and I still find XML and C# a bit cryptic.

    Thanks in advance.

    May you have a blessed day as the LORD wills.
     
    JEP_Dude, Mar 30, 2009 IP
  2. bibinsmk

    bibinsmk Active Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    I think to access the row or cell of a table use can use like this

    TABLE1.Rows[0].Align = "Right";
    This will set the alignment of the first row to right.
     
    bibinsmk, Mar 30, 2009 IP
  3. MayurGondaliya

    MayurGondaliya Well-Known Member

    Messages:
    1,233
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    170
    #3
    If you are using asp.net table control then you can access it using TableCell. If you are using HTML table, then add runat="server" and ID attribute to each tds. And you can then access it using ID.InnetHtml
     
    MayurGondaliya, Mar 31, 2009 IP
  4. JEP_Dude

    JEP_Dude Peon

    Messages:
    121
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for your posts.

    In essence the question is what command(s) should I type in to place a new button into a chart cell after it has been inserted on a form? So if a table is placed onto a form, how could I programmically place a new button into a specific and empty cell on that chart? Also, how could I name that same button's ID and its Text properties?

    Its a bit beyond my skills since I'm new to ASP.Net and I have no talent for XML or HTML. I only understand VB.

    Thanks in advance.

    May you have a blessed day as the LORD wills.
     
    JEP_Dude, Mar 31, 2009 IP