O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fixing the Master Page Tabs

Earlier in the chapter, we added a route for the Calculator.aspx class, and when we viewed the page using the routed URL, you may have noticed that the tabs that we added to the master page in Chapter 10 didn't work properly, as shown in Figure 12-6.

images

Figure 12-6. The URL and the tab highlighting don't match.

You can see that the URL is for the Calculator page but that the Events table is the one that is highlighted. The reason for this is that we used a map in the jQuery script to associate each tab with the pages that it represents, like this:

var pages = [     ['Events', "/ListEvents.aspx", "/AddEvent.aspx", ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required