Just to let know that I've some code rendering user controls from a
plain IHttpHandler, and it doesn't need to render from the page, you
can do something like:
TUserControlType LoadUserControl<TUserControlType>(string url) where
TUserControlType : UserControl {
var control = (TUserControlType)new Page().LoadControl(url);
return control;
}
protected void renderControl(Control ctrl) {
HtmlTextWriter htmlwriter = new
HtmlTextWriter(Context.Response.Output);
ctrl.RenderControl(htmlwriter);
}
On Sep 11, 4:40 pm, "Victor Kornov" <[EMAIL PROTECTED]> wrote:
> AFAIK, not. There won't be any markup except from your UC. You might want to
> test it before making tweaks :)
>
> On Thu, Sep 11, 2008 at 6:36 PM, Wayne Douglas <[EMAIL PROTECTED]>wrote:
>
> > I suspect this will render the output with its own html, body and form
> > tags - this isn't going to work for me but I recon some tweakage might
> > get me there :)
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---