M
Mark Gilkes
I'm overriding the Render method in a Custom Control that inherits from
WebControl. Some of the ouput code is as follows;
protected override void Render (HtmlTextWriter writer)
{
...
...
...
writer.AddAttribute(HtmlTextWriterAttribute.Class, this.CssClass);
writer.RenderBeginTag(HtmlTextWriterTag.Div);
writer.Write(this.ImageText); //Property text
writer.RenderEndTag();
...
...
}
My problem is that I want the text output to follow on from the div element.
The write method of the HtmlTextWriter seems to insist on inserting the text
on a new line when viewing the source. How can I make the output follow the
div element?
Thanks.
WebControl. Some of the ouput code is as follows;
protected override void Render (HtmlTextWriter writer)
{
...
...
...
writer.AddAttribute(HtmlTextWriterAttribute.Class, this.CssClass);
writer.RenderBeginTag(HtmlTextWriterTag.Div);
writer.Write(this.ImageText); //Property text
writer.RenderEndTag();
...
...
}
My problem is that I want the text output to follow on from the div element.
The write method of the HtmlTextWriter seems to insist on inserting the text
on a new line when viewing the source. How can I make the output follow the
div element?
Thanks.