Dynamic table not showing

Discussion in 'ASP .Net' started by Marty McDonald, Jan 30, 2004.

  1. On my webform I have a table (Table1), nothing in it. In code-behind, I
    have a method that builds and returns a System.Web.UI.WebControls.Table with
    rows, columns, & cells.

    In my aspx.cs Page_Load, I have...
    this.Table1 = myclass.GenerateTable();

    GenerateTable() does build a table, but for some reason, Table1 does not
    show anything at all. What is wrong?
     
    Marty McDonald, Jan 30, 2004
    #1
    1. Advertisements

  2. I solved it - I just discovered the PlaceHolder control. I added it to my
    form, then in code-behind I add the newly-created table to that PlaceHolder.
     
    Marty McDonald, Jan 30, 2004
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.