Gauthier Segay wrote:
> 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);
> }
>
> [...]Care to share? :D w:// --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
