Hi
khushi2005:
I am trying to populate child menu when a Parent menu is clicked
Since Iwant low maintainence code that with change in my sitemap I do not want to change the Page cs file
The menu control cannot support to populate the childitem when the parent menu is clicked. You can try to use the treeview control.
You use the sitemapdatasource for the menu's datasource, if the sitemapnode's url is not empty, the page will redirect to the url directly without postback, so the menuitem click event cannot be fired. If the sitemapnode's url is empty, the menuitem is unclickable, so the menuitem click event also cannot be fired.
Hope it helps.
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Yours sincerely,
Amanda Wang
Microsoft Online Community Support