Dynamic table not showing


M

Marty McDonald

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?
 
Ad

Advertisements

M

Marty McDonald

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.
 

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

Top