I want to inject a presenter into my webform class. While doing so I would like the injected presenter to contain a reference to the view it is being injected into. Inject a class with a reference to the class it is injected into. Is it possible to do this with Ninject? When injecting into a webforms class, is the injection performed before the constructor is executed? Should I rather just inject the presenter and use the constructor to pass the view?
Can Ninject inject a class and make it reference the target class as a back reference?
554 Views Asked by Lars Kristian Hagen At
1
There are 1 best solutions below
Related Questions in DEPENDENCY-INJECTION
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in WEBFORMS
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in NINJECT
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in PRESENTER
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Related Questions in NINJECT.WEB
- pysnmp command responder - Handle get/set requests with external data (not mib)
- import external python library (pysnmp) in Cameo Systems Modeler 18.1
- PySNMP Error InterfaceIndexOrZero Error
- pysnmp walk v2c if no response try v3
- pysnmp Agent with HOST-RESOURCES-MIB
- Using pySNMP to write an SNMP agent (for OpenNMS)
- PySNMP form dictionary from table
- Import custom MIB PySNMP Windows
- Trouble grasping MIBs with PySNMP
- Translate OID value pairs from MIB textual convention using pysnmp
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
For webforms this is not possible because the form is not created by ninject. You have to pass it manually to the presenter.
I think the solution is to use MVC there you have support for your problem form the framework. Webforms and MVC can be mixed. You can create new pages with MVC and still use the old webform ones. Whenyou have to change a webforms page then you better refactor it to MVC befor the change.