Control Rendering problem...

  • Thread starter Thread starter Darren Clark
  • Start date Start date
D

Darren Clark

I am writting server contorl that inherits from the TextBox.

The problem is.... that my code that i want to be sent out is... but the
actual textbox is now

sOutput contains the code that i want to be written out.... But how do i
tell it to write out the TextBox as well?
protected override void Render(HtmlTextWriter output)

{

this.SetInputType(); // Are we up level or down?

this.GetClientScripts(); // register client scripts


string sOutput = this.BuildControls();

output.Write(sOutput);

}
 
Thank you anyway
i fount it
Need to call base.Render
protected override void Render(HtmlTextWriter output)

{

this.SetInputType(); // Are we up level or down?

this.GetClientScripts(); // register client scripts


string sOutput = this.BuildControls();

base.Render(output);

output.Write(sOutput);

}
 
Back
Top