You can specify the menu items in the code behind using DayPilotMenu.MenuItems property:
protected void Page_Load(object sender, EventArgs e)
{
DayPilotMenu1.MenuItems.Clear();
// <DayPilot:MenuItem Text="Open" Action="JavaScript" JavaScript="edit(e);" ></DayPilot:MenuItem>
MenuItem open = new MenuItem();
open.Text = "Open";
open.Action = MenuItemAction.JavaScript;
open.JavaScript = "edit(e);";
DayPilotMenu1.MenuItems.Add(new MenuItem());
// ...
}
You can customize the list depending on the current user permissions/roles.
See also:
http://doc.daypilot.org/menu/items/