I have a rad menu with several items. The menu items lead to different places depending on a few things, so i'm trying to implement an OnClick handler in the code behind to redirect appropriately. I've tried all kinds of combinations and scoured the forums and nothing has worked so far.
My OnClick method is just a stub right now with a breakpoint so I can see when it gets called, only it isn't getting called, and I'm redirected to the default.aspx page.
Ths is within a user control, if that matters. Are you aware of anything that could cause this behavior?
protected
void
RadMenu_ItemClick(
object
sender, RadMenuEventArgs e)
{
int
i = 0;
String s = e.Item.Value;
}
<
radM:RadMenu
ID
=
"RadMenu"
runat
=
"server"
OnItemClick
=
"RadMenu_ItemClick"
>
<
Items
>
<
radM:RadMenuItem
runat
=
"server"
ID
=
"sampleItem"
Text
=
"Click Me"
/>
</
Items
>
</
radM:RadMenu
>