MasterPageBase class from Ninject.Framework.WinForms.dll

40 views
Skip to first unread message

Jaroslav Urban

unread,
Nov 3, 2009, 2:09:02 PM11/3/09
to ninject
Hi,
I tried use Ninject. I downloaded last version (v1.0). I want it to
use it for Asp.Net 2.0 app. I followed example from David Hayden
(http://davidhayden.com/blog/dave/archive/2008/06/20/
NinjectDependencyInjectionASPNETWebPagesSample.aspx) . It works when I
use PageBase class. When I tried use MasterPageBase class it was not
working. I suppose that if I use MasterPageBase class, all the
injected object will be loaded. But they are not. Is it like it
applies only for master page itself (not the included page that use
the master page)?
Any suggestion or opinion most welcome. Cheers, Jaroslav

Ian Davis

unread,
Nov 12, 2009, 12:41:24 PM11/12/09
to nin...@googlegroups.com
Can you give a demo project with your error?
--
Ian Davis
http://disassembla.net

Jaroslav Urban

unread,
Nov 15, 2009, 4:43:28 PM11/15/09
to ninject
http://rapidshare.com/files/307545894/masterpagetest.zip.html

It is working if i use base class from ninject
Ninject.Framework.Web.dll at Page level. If I am trying use it at
master page level, it wont work. The injected oject is still defineed
at page.

Cheers, J.

On Nov 12, 5:41 pm, Ian Davis <ian.f.da...@gmail.com> wrote:
> Can you give a demo project with your error?
>

Ian Davis

unread,
Nov 27, 2009, 8:54:19 AM11/27/09
to nin...@googlegroups.com
Did you try using the AutoWiringModule? It should take care of your property injection.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "ninject" group.
To post to this group, send email to nin...@googlegroups.com
To unsubscribe from this group, send email to ninject+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/ninject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply all
Reply to author
Forward
0 new messages