Jun 23, 2008 01:10 PM|jkirkerx|LINK
Looks much beter now, your close, just need to tighten it up more. Fix your Properies. I like placing properties at the bottom of the page under all the subs and functions.
The Property statement below is all Wrong. Go back to a default Text Property and leave it alone.
EnsureChildControls(); //Strip these out of your properties for proper functon ' This is for other purposes and not here
To Render, all you need is this which is the simple way to do it. You can render the way you have it, but that is beyond my knowledge, and I see no practical purpose for it at the moment. The Atrribute tags in your RenderFunction, move them to your init
function where you created the control, and keep them in groups.
void Render(HtmlTextWriter writer)
'OnInit Example, I made a table, added a tablerow, added a cell, and placed the textbox inside the cell.
'Make a Table Tag
table = New Table();
table.Width = 100
table.CellSpacing = 0;
tr = New TableRow();
td = New TableCell();
txtDate.Width = 90;