G
George Ter-Saakov
I am trying to wrap PlaceHolder so it will output prefix/suffix (like <div>,
</div>) before render the actual control.
So i created
public class clsSection : PlaceHolder
protected override void Render(HtmlTextWriter writer)
{
writer.Write(_sPrefix);
base.RenderControl(writer);
writer.Write(_sSuffix);
}
But Render is never called. I tried to override RenderControl but it never
called either.
1. What do i do to implement that feature.
2. What is the difference between Render and RenderControl?
Thanks.
George.
</div>) before render the actual control.
So i created
public class clsSection : PlaceHolder
protected override void Render(HtmlTextWriter writer)
{
writer.Write(_sPrefix);
base.RenderControl(writer);
writer.Write(_sSuffix);
}
But Render is never called. I tried to override RenderControl but it never
called either.
1. What do i do to implement that feature.
2. What is the difference between Render and RenderControl?
Thanks.
George.