Consider the following code
myMenuList.DataBind();
//Child controls of myMenuList are now created and can raise events.
//These events change myMenuList.PageSource, and/or OpenTopPages
//from page A to page B. The actual data source PageDatacollection
//is the same for the MenuList.
myMenuList.DataBind();
The menulist control now erronously renders the selected template for both page A andB, whereas it should use page A in the first case and page B in the second place.
myMenuList.DataBind(); //Child controls of myMenuList are now created and can raise events. //These events change myMenuList.PageSource, and/or OpenTopPages //from page A to page B. The actual data source PageDatacollection //is the same for the MenuList. myMenuList.DataBind();
The menulist control now erronously renders the selected template for both page A andB, whereas it should use page A in the first case and page B in the second place.