Sohdubom wrote:
What´s the solution for this option? Considering I want to navigate from one page to another ... Will I have to target the master page menu from each of the pages? That´s not a good solution ... too much coding
Because you define the menu control in the Master Page and all the web pages use this Master Page, so I think you only need to write code to set the selected menu item in the master page only and no need to do that from each content page. For example, you have 3 web pages A.aspx, B.aspx, C.aspx and the menu control in the master page is defined with 3 items accordingly. At run time you can detect the url of the current requested page by checking the Request object or SiteMap (if you define web.sitemap file), you then can set the Selected propety of the right menu item. The sample code to select the menu item in the master page looks something like:
//You can either use the Request object or SiteMap to determine
//the current url.
//string url = SiteMap.CurrentNode.Url;
string url = Request.Url.AbsoluteUri;
if (url.Contains("A.aspx"))
Menu1.Items[0].Selected = true;
else if(url.Contains("B.aspx"))
Menu1.Items[1].Selected = true;
else
Menu1.Items[2].Selected = true;
Sohdubom wrote:
To use a single web page instead of 3, but this way I believe I´ll have to have views/panels hidden and showed according to the selected tab, right? This turn to concentrating too much logic in a single page. Suppose I have 100 tabs!!!
You're right, this option should only be used when you have just a few web pages.