(Base)Page object in Delete() [umbraco.interfaces.ITaskReturnUrl]
Hello,
I was wondering if the (Base)Page object is available when the Delete function is called from the Umbraco context menu.
'BasePage.Current' is null as well as the 'HttpContext.Current.Handler as Page'
The reason I want the (Base)Page object is because I want to use 'ClientTools.Script' to change the content frame when it turns out that the frame is holding the item that has just been deleted.
Perhaps I am looking in the wrong direction so alternate solutions are appreciated as well.
I fixed my own issue by inhertiing from UmbracoEnsuredPage and not just Page in my code-behind. This ensures that "BasePage.Current" is not null, and then I was able to use the ClientTools class.
(Base)Page object in Delete() [umbraco.interfaces.ITaskReturnUrl]
Hello,
I was wondering if the (Base)Page object is available when the Delete function is called from the Umbraco context menu.
'BasePage.Current' is null as well as the 'HttpContext.Current.Handler as Page'
The reason I want the (Base)Page object is because I want to use 'ClientTools.Script' to change the content frame when it turns out that the frame is holding the item that has just been deleted.
Perhaps I am looking in the wrong direction so alternate solutions are appreciated as well.
Regards,
Nicolas
Hi Nicholas,
I'm having a similar problem - http://our.umbraco.org/forum/developers/api-questions/29752-Unable-to-close-modal-window-or-show-speech-bubble-using-ClientTools.
I want to close a modal window and display a speech bubble but BasePage.Current is null. Did you ever find a solution for your problem?
I fixed my own issue by inhertiing from UmbracoEnsuredPage and not just Page in my code-behind. This ensures that "BasePage.Current" is not null, and then I was able to use the ClientTools class.
That might be what you need?
is working on a reply...