Click to See Complete Forum and Search --> : Simple question: Rendering of output


corcor
June 24th, 2002, 01:44 AM
I wrote a simple Hello World application, by just overriding the render-method of a control:

protected override void Render(HtmlTextWriter output)
{
output.WriteLine("Hello World");
}

When I drop my control in a web-form (Using Visual Studio.NET) the text "Hello World" is always shown on the top-left corner of IE !!??? In designer-view, I see the text at the right position (where I placed the control).


When I specify a border to my control and use

protected override void Render(HtmlTextWriter output)
{
base.Render( output );
output.WriteLine("Hello World");
}

the border-rectangle is shown on the correct position, but the text is still at the top-left corner of IE.

Any ideas, how I can get the text inside the control-area ?

Many thanks