Hi all,
How can I wire the Click event (or any other) while building the
MenuItems?
I can't seem to find anywhere how to. Any help appreciated.
Please note that:
1) on the .aspx I only have:
<asp:Menu ID="mainMenu" runat="server" Orientation="Horizontal">
</asp:Menu>
as I do NOT want to create each and every possible control on
the .aspx
They are built automatically on the server side code.
2) the equivalent for Windows Forms would be:
...
foreach (myObjMenuItem mmi in myMenuItemList)
{
MenuItem newMenuItem = loopSubMenus(mmi);
newMenuItem.Click += new ExecuteMyProgram(callProg);
winMenuItemList.Add(newMenuItem);
}
...
but in the MenuItem for ASP.NET there is no .Click event when
building the control. Or there is?
3) using VS2005 C# v2
Cheers,
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/