开发者

Code on MVC Master Page

I want to write a code on the mvc mast开发者_如何学Cer page please tell how shall I do that,My requirement is that I want to show the tab clicked as highlighted.

Please help me Thanks Ritz


use css :visited pseudo-class on link


Use css as stated by Jack and check the information on your current route to see what view your displaying, something like

Html.ViewContext.Controller.ControllerContext.RouteData.GetRequiredString("controller")

to get the current controller or replace controller with whatever data you need from the route. Then just add a condition to add a selected class or not on your tab.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜