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

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top