Do I need to go through my logic to determine what controls to add twice -
first when I create the controls in CreateChildControls and the in
RenderContent to render the controls?
or am I just of track here?.
I would appreciate some clarification
Thanks
Paul S
Hemant
"Paul S" <Pa...@discussions.microsoft.com> wrote in message
news:C61F320A-C418-4C8D...@microsoft.com...
PlaceHolder ph;
protected override void CreateChildControls()
{
base.CreateChildControls();
this.ph = new PlaceHolder();
TextBox tb = new TextBox();
tb.Text = this.Text;
Button bt = new Button();
bt.Text = "Click";
ph.Controls.Add(tb);
ph.Controls.Add(bt);
this.Controls.Add(ph);
}
protected override void RenderContents(HtmlTextWriter writer)
{
ph.RenderControl(writer);
}
"Hemant" wrote:
> .
>