PageEvent called twice so my custom icon is added twice
I'm using the Load page event to add a menu button for a specific content type. However it appears the event is called twice which results in the button being added twice. Any ideas?
Marcio Goularte, thanks but that isn't going to work. IsPostBack isn't part of the ApplicationBase which this class inherits from. umbracoPage does inherit from System.Web.UI.MasterPage however the IsPostBack property is always false.
PageEvent called twice so my custom icon is added twice
I'm using the Load page event to add a menu button for a specific content type. However it appears the event is called twice which results in the button being added twice. Any ideas?
Hi seanrock, try this:
Marcio Goularte, thanks but that isn't going to work. IsPostBack isn't part of the ApplicationBase which this class inherits from. umbracoPage does inherit from System.Web.UI.MasterPage however the IsPostBack property is always false.
Sorry! I have not seen right. I thought it was the Page_Load event, I replied without reading. Unfortunately I have no idea. Your code looks correct.
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.