Hi..
I have a Menu in a MasterPage.
On the page Load of the menu I create an additional menu option. As soon as you navigate to another page the 'custom' dynamic option goes away. Any ideas?
thanks!
I have a Menu in a MasterPage.
On the page Load of the menu I create an additional menu option. As soon as you navigate to another page the 'custom' dynamic option goes away. Any ideas?
thanks!
protected void Page_Load(object sender, EventArgs e)
{
if (Session["OFFICECODE"] == null)
{
Session[
"OFFICECODE"] = SecurityManager.GetOfficeCode(HttpContext.Current.User.Identity.Name);
Session[
"Office_Table"] = SecurityManager.GetOfficeCodeData(Session["OFFICECODE"].ToString());
if (((Admin.OfficeCodeDataTable)Session["Office_Table"]).Rows.Count != 0)
{
RadMenuItem NewItem = new RadMenuItem();
NewItem.ForeColor = System.Drawing.
Color.Blue;
NewItem.Text = ((
Admin.OfficeCodeDataTable)Session["Office_Table"])[0].SenatorElect;
NewItem.ToolTip = NewItem.Text;
NewItem.Width = 375;
this.RadMenu.Items.Add(NewItem);
}
}
// end if
}