G
Guest
My asp.net 2005 menu control has items with nothing in navigateUrl - meaning
it should postback when an item is selected. I have code in the Page_Load
which is supposed to call a method based on the selected menu item.
if (this.Menu1.SelectedItem.Value.Equals("1"))
processA();
if (this.Menu1.SelectedItem.Value.Equals("2"))
processB();
This does not work the first time the menu item is selected. It does work
the second time the menu item is selected.
I guess I STILL do not understand postback. Shouldn't this work for the
first selection?
Thanks
it should postback when an item is selected. I have code in the Page_Load
which is supposed to call a method based on the selected menu item.
if (this.Menu1.SelectedItem.Value.Equals("1"))
processA();
if (this.Menu1.SelectedItem.Value.Equals("2"))
processB();
This does not work the first time the menu item is selected. It does work
the second time the menu item is selected.
I guess I STILL do not understand postback. Shouldn't this work for the
first selection?
Thanks