Wayne Douglas wrote:
> Victor Kornov wrote:
>   
>> Btw, you could always take a look at asp.net <http://asp.net> mvc 
>> webforms view engine.
>>
>> [...]
Really need a hand here chaps:

I was doing this with server controls:

T e = (T)System.Activator.CreateInstance(type, args);

Now I need to be able to do it with ascx controls so I tried this:

T e = (T)(container.Resolve<T>("PatientProfiles", args));

But the WebUserControlComponentActivator uses:

currentPage.LoadControl(virtualPath);

which has no overload to accept args!! Grrrrrrrr

This is going to be the death of me!!

Can anyone give me any ideas how to achieve this? I need to be able to 
create an instance of a web user control that has a param in its 
constructor.

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

Reply via email to