Control Rendering problem...

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);

}
 
D

Darren Clark

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);

}
 

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

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top