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
I'm currently wondering how to properly use the ClientTools (Umbraco.Web.UI.Pages namespace) in event handlers by accessing the UmbracoContext.Current as suggested by the obsolete attribute message.
Before migration to umbraco 7 I always used the Current Property of the old ClientTools (umbraco.BasePages namespace) which had a legacy fallback.
I've created my own fallback by using a new BasePage instance:
ClientTools clientTools = new ClientTools(new BasePage());
Is this the way to go or does someone knows it better? My way looks a bit dirty for me... thx :)
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted