G
Guest
I have a situation where I need a control that was created specifically for
asp.net to also display in classic asp. The steps I've taken so far is to
extend the control, override Render(HtmlTextWriter writer) and do something
like this:
protected override void Render(HtmlTextWriter writer)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
base.Render(htw);
<psuedo-code> cache sb.ToString();
base.Render(writer);
}
My actual question is, is it possible to get a handle on the applications
HtmlTextWriter object as opposed to creating my own? Because for some
reason, when I use my own HtmlTextWriter guy, I'm not getting all of the
Control's output.
I've tried using the this.Page.Response.Output and OutputStream guys but I'm
unable to access them.
Any help would be HUGELY helpful.
tia
sean
asp.net to also display in classic asp. The steps I've taken so far is to
extend the control, override Render(HtmlTextWriter writer) and do something
like this:
protected override void Render(HtmlTextWriter writer)
{
StringBuilder sb = new StringBuilder();
StringWriter sw = new StringWriter(sb);
HtmlTextWriter htw = new HtmlTextWriter(sw);
base.Render(htw);
<psuedo-code> cache sb.ToString();
base.Render(writer);
}
My actual question is, is it possible to get a handle on the applications
HtmlTextWriter object as opposed to creating my own? Because for some
reason, when I use my own HtmlTextWriter guy, I'm not getting all of the
Control's output.
I've tried using the this.Page.Response.Output and OutputStream guys but I'm
unable to access them.
Any help would be HUGELY helpful.
tia
sean