you can always derive from WUCCA and set it to activate your special
controls.

however (Im not sure - it's been ages since I last did WebForms) I'm not
sure you can call RenderControl on a control without a page.

On Thu, Sep 11, 2008 at 4:23 PM, Wayne Douglas <[EMAIL PROTECTED]>wrote:

>
> Hey
>
> I have this - where Test is a standard, vanilla, ascx web user control.
>
> Test t = new GlobalApplication().Container.Resolve<Test>("test");
> StringWriter sw = new StringWriter();
> HtmlTextWriter htw = new HtmlTextWriter(sw);
> t.RenderControl(htw);
>
> I wanted to use this inside a monorails nVelocity view. It won't work
> because WebUserControlComponentActivator needs a page in the context to
> do its thang.
>
> Any ideas on how to make this work using views? It works fine on a page.
>
> :)
>
> w://
>
> >
>


-- 
Ken Egozi.
http://www.kenegozi.com/blog
http://www.musicglue.com
http://www.castleproject.org
http://www.gotfriends.co.il

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to