Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi All,I'm creating a new class in App_Code folder to capture an event in backoffice. As well, I've extend ApplicationBase in this way:
public class MyClass : ApplicationBase {// Init variablespublic MyClass() {// Register event}}
MyClass is called and so all variables initialized below, but its constuctor is not never called and I cannot register my event.
Do you have any explanation for this strange behaviour?
Thanks in advanceGiuseppe
Hi Giuseppe,
This should work.what is the Umbraco version you are using?
Cheers,
Richard
Solved, not umbraco issue!
Thanks anyway
What was the issue, I'm having the same problem.
solved my own problem, somehow the class was marked as 'internal' duh
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
ApplicationBase... Constructor is not called
Hi All,
I'm creating a new class in App_Code folder to capture an event in backoffice. As well, I've extend ApplicationBase in this way:
MyClass is called and so all variables initialized below, but its constuctor is not never called and I cannot register my event.
Do you have any explanation for this strange behaviour?
Thanks in advance
Giuseppe
Hi Giuseppe,
This should work.what is the Umbraco version you are using?
Cheers,
Richard
Solved, not umbraco issue!
Thanks anyway
What was the issue, I'm having the same problem.
solved my own problem, somehow the class was marked as 'internal' duh
is working on a reply...