X
xzzy
I am stuck on how to make a screen whose fields are created at runtime so it
can 'morf'' to meet the needs of the current situation.
Using <table id="Table1" runat="server">
</table>
and using code behind to write cells, rows and server controls into the
cells doesn't work ( can't programactially access a table )
I am currently trying to do:
<table id="Table1" runat="server">
<tr><td><asplaceHolder id="PL1"/></td></tr>
<tr><td><asplaceHolder id="PL2"/></td></tr>
</table>
and in code behind
protected System.Web.UI.WebControls.PlaceHolder PL1;
protected System.Web.UI.WebControls.PlaceHolder PL2;
and then wanting to write a server control to each placeholder and then be
able to read and write information to the server controls. But I am unable
to reference the newly created server controls.
can 'morf'' to meet the needs of the current situation.
Using <table id="Table1" runat="server">
</table>
and using code behind to write cells, rows and server controls into the
cells doesn't work ( can't programactially access a table )
I am currently trying to do:
<table id="Table1" runat="server">
<tr><td><asplaceHolder id="PL1"/></td></tr>
<tr><td><asplaceHolder id="PL2"/></td></tr>
</table>
and in code behind
protected System.Web.UI.WebControls.PlaceHolder PL1;
protected System.Web.UI.WebControls.PlaceHolder PL2;
and then wanting to write a server control to each placeholder and then be
able to read and write information to the server controls. But I am unable
to reference the newly created server controls.