Hi
If you are using master page then you have to access it from the master page as below
if (!IsPostBack)
{
MenuItem mItem1 = new MenuItem();
mItem1.Text = "Test Menu";
Menu menu = (Menu)this.Master.FindControl("NavigationMenu");
menu.Items.Add(mItem1);
}
I think vb.net it may be like
Dim menu as Menu= Me.Master.FindControl("StepPlanMenu1")