I have the following code
Code: C#
public void SetMenuOptions(String WebPage, UserType UserType, EO.Web.Menu NavigationMenu)
{
EO.Web.BaseMenuItem _Item;
//determine the calling page
switch (WebPage)
{
case "EmployerContact":
{
//determine what type of user is logged in
switch (UserType)
{
case UserType.CareerServices:
{
_Item = (EO.Web.BaseMenuItem)NavigationMenu.FindItem("New Contact");
_Item.Visible = true;
NavigationMenu.Items[1].Visible = true;
NavigationMenu.Items[2].Visible = true;
NavigationMenu.Items[4].Text = "LOGGED IN AS ";
break;
}
case UserType.Employer:
{
break;
}
}
break; break;
}
default:
{
break;
}
}
}
I'm getting a type conversion error...can you help with this?