This question is locked. New answers and comments are not allowed.
Hi,
I am pretty new to both asp.net mvc and telerik extensions for asp.net mvc, so please bear with me...
I have a site with a navigation menu where most of the links are local and I use ".Action" to redirect to the views.
However I do have one link that is external, i.e. another site on the Internet, and would like to open that url in a new window.
Can this be done?
This is the part of the code in the ".cshtml" file that holds the menu:
I am pretty new to both asp.net mvc and telerik extensions for asp.net mvc, so please bear with me...
I have a site with a navigation menu where most of the links are local and I use ".Action" to redirect to the views.
However I do have one link that is external, i.e. another site on the Internet, and would like to open that url in a new window.
Can this be done?
This is the part of the code in the ".cshtml" file that holds the menu:
<div class="menu_search"> @if (HttpContext.Current.User.Identity.IsAuthenticated) { Html.Telerik().Menu().HtmlAttributes(new { Visible = "true" }) .Name("Mainmenu").Orientation(MenuOrientation.Horizontal) .Items(menu => { menu.Add() .Text("Home") .ImageUrl("~/Content/Common/Icons/Suites/mvc.png") .HtmlAttributes(new { style = "width: 100px;" }) .Action("Index", "Home"); menu.Add() .Text("My Reports") .HtmlAttributes(new { style = "width: 160px;" }) .ImageUrl("~/Content/Common/Icons/Suites/ajax.png") .Action("Index", "Reports"); menu.Add() .Text("Search") .HtmlAttributes(new { style = "width: 120px;" }) .ImageUrl("~/Content/Common/Icons/Suites/sitefinity.png") .Url("http://www.google.com"); }) .Render(); }</div>