I have a site.master page which contians a radmenu. I have another nested master page nested from site.master called submaster . I was trying to get the menu selected value in the pageload event of the submaster.
This code is in the submaster page_load event
RadMenu cMenu = (RadMenu)Master.FindControl("Radmenu1");
string cItem = cMenu.SelectedValue;
Here I am getting cItem as null. I have populated the Text and Value properties of every menu item in the site.master page. Is the syntax I am using correct? Any help is appreciated.
I have a default page created from the submaster which displays the contents.
I tried to put the same code in the default.aspx page also, but I am not getting the selected value.