Victor Kornov wrote:
> Btw, you could always take a look at asp.net <http://asp.net> mvc
> webforms view engine.
>
> >
What's the thoughts on having these two methods added to
WebUserControlComponentActivator
-------
protected T LoadControl<T>(string url) where T : UserControl
{
return (T)new Page().LoadControl(url);
}
protected void renderControl(Control ctrl)
{
HtmlTextWriter htmlwriter = new
HtmlTextWriter(System.Web.HttpContext.Current.Response.Output);
ctrl.RenderControl(htmlwriter);
}
----
with this in the main body:
----
if (currentPage == null)
{
instance =
this.LoadControl<UserControl>(virtualPath);
}
else
{
if (!string.IsNullOrEmpty(virtualPath))
{
instance = currentPage.LoadControl(virtualPath);
}
else
{
instance = currentPage.LoadControl(implType,
arguments);
}
}
----
thoughts? Just means that we can load the control no matter what...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---