ASPX templates
Version 7.x > ASPX templates > Dependency injection into templates View modes: 
User avatar
Member
Member
bdrenner-new42 - 7/19/2013 10:21:31 AM
   
Dependency injection into templates
In plain vanilla Web Forms, you can wire up a custom PageHandlerFactory that injects dependencies, as documented here among other places. I can't get this to work in my Kentico 6 site, which isn't surprising. I'm guessing that Kentico subverts the usual pipeline, so my custom PageHandlerFactory is never invoked.

Does anyone have a technique to inject dependencies into page templates and other custom Controls for Kentico?

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 7/21/2013 1:52:15 PM
   
RE:Dependency injection into templates
Hello,

What exactly do you want to achieve? Did you try to go throuth the ASPX page template development model chapter in our Developers Guide?

And let me note, this is v7 forums thread, so please next time, create a new thread under the correct version.

Best Regards,
Martin Danko