This question is locked. New answers and comments are not allowed.
Hi,
I made a small change in Telerik menu to run the Login and Register but does not work.
What can it be?
Shared/_Main.cshtml
Home/Index.cshtml
I made a small change in Telerik menu to run the Login and Register but does not work.
What can it be?
Shared/_Main.cshtml
@{ ViewBag.Title = "Main"; }<script src="@Url.Content("~/Content/engine/js/jquery.min.js")"></script><link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/StyleSheet.css")" /><link rel="stylesheet" type="text/css" href="@Url.Content("~/Content/Site.css")" />@(Html.Telerik().StyleSheetRegistrar().DefaultGroup(group => group.Add("telerik.common.css").Add("telerik.black.css").Combined(true).Compress(true)))</head><body> <div class="page"> <header> <div id="htop"> <div id="hleft"> </div> <div id="hright"> <div id="hlogin"> <section id="login"> @Html.Partial("_LoginPartial") </section> </div> <div id="hsearch"> </div> </div> </div> @(Html.Telerik().Menu() .Name("menu") .ClientEvents(e=> e.OnSelect("onSelect")) .Items(menu => { menu.Add().Text("Home").Action("Index", "Home").Url("/"); menu.Add().Text("Test").Url("/Test").HtmlAttributes(new { data_url = Url.Action("Index", "Test") }); menu.Add().Text("Contact").Url("/").HtmlAttributes(new { data_url = Url.Action("Contact", "Home") }); menu.Add().Text("About").Url("/").HtmlAttributes(new { data_url = Url.Action("About", "Home") }); menu.Add().Text("Login").Url("/Account/Login").HtmlAttributes(new { data_url = Url.Action("Login", "Account") });
menu.Add().Text("Register").Url("/Account/Register").HtmlAttributes(new { data_url = Url.Action("Login", "Register") });
})) </header> @RenderSection("featured",required:false) <section id="main"> @RenderBody() </section> <footer> Direitos reservados </footer> </div> @(Html.Telerik().ScriptRegistrar().DefaultGroup(group => group.Combined(true).Compress(true))) @Scripts.Render("~/bundles/jquery") @RenderSection("scripts",required:false)</body><script type="text/javascript"> onSelect = function (e) { var item = $(e.item); var url = item.data("url"); //alert(url); var splitter = $("#Splitter"); splitter.data("tSplitter").ajaxRequest(splitter.find(".t-pane")[1], url); e.preventDefault(); return false; }</script>Home/Index.cshtml
@{ ViewBag.Title = "Index"; Layout = "~/Views/Shared/_Main.cshtml";}@{ Html.Telerik().Splitter() .Name("Splitter") .Orientation(SplitterOrientation.Horizontal) .HtmlAttributes(new { style = "height: 99%; border: 0px; " }) .Panes(hpanes => { hpanes.Add() .Size("252px").HtmlAttributes(new { style = "overflow:auto" }) .MinSize("252px") .Collapsible(true) .LoadContentFrom("Index2", "Home"); hpanes.Add() .LoadContentFrom("Index3", "Home") .HtmlAttributes(new { style = "width: auto; overflow:auto;" }); }) .Render();}