Its been a while since working with the widget zone with code behind and can't find the code I was using before.
It worked before in BE 2.0 but not working in BE 2.5 getting error:
The name 'WidgetZone' does not exist in the current context"
This is my code behind file.
public partial class Seo1 : System.Web.UI.MasterPage
protected void Page_Load(object sender, EventArgs e)
var url = Request.Url.ToString();
WidgetZone.Visible = false;
WidgetZone.ZoneName = "LeftSide_Seo1";
aUser.InnerText = "Welcome " + Page.User.Identity.Name + "!";
aLogin.InnerText = Resources.labels.logoff;
aLogin.HRef = Utils.RelativeWebRoot + "Account/login.aspx?logoff";
aLogin.HRef = Utils.RelativeWebRoot + "Account/login.aspx";
aLogin.InnerText = Resources.labels.login;
I bet I am missing a namespace just don't remember which one to use :)