Mar 29, 2010, 1:52 PM
[CLOSED] accordion menu in codebehind
please help me take a look at this code, why i getting the name 'MP' dose not exist in the current context? Thank y ou for your help
foreach (DataRow da in objUser.Rows)
{
if ((int)da["ParentMenuID"] == 0)
{
MenuPanel MP = new MenuPanel();
MP.Title = da["MenuTitle"].ToString();
Accordion1.Items.Add(MP);
}
else
{
Ext.Net.Menu M = new Ext.Net.Menu();
M.ID = "M";
Ext.Net.MenuItem MI = new Ext.Net.MenuItem();
MI.Text = "M1";
MP.Menu.Items.Add(MI);
}
}