MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Hmm sir/miss , im not understanding this close exactly ..
So when i hit create page and check TRUE the checkbox , example Page "Test",that page should be on the menu . In the Layout view i sent above , here in this section :
Then , that recently-created page "Test" should show on Menu like this :
<li>@Html.ActionLink("PageConfig", "Index", "PageConfigs")</li>
<li>@Html.ActionLink("Pages", "Index", "Pages")</li> ====HERE COMES TEST PAGE TAB ======= ====HERE COMES TEST1 PAGE TAB=======
AND SO ON.....
So this is the Layout view of entire application:
<pre><!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>@ViewBag.Title - My ASP.NET Application</title> @Styles.Render("~/Content/css") @Scripts.Render("~/bundles/modernizr")
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
@model IEnumerable<CMSFC.Models.Page>
@{// Layout = "~/Views/Shared/_Layout2.cshtml";}@foreach (var item in Model.Where(m=> m.ShowOnMeny==true))
{
<li>@Html.ActionLink("P", "Details", new { id = item.Id })</li>
}
and in layout:
<li>@Html.Partial("Menu")</li>
But im getting this error :
Server Error in '/' Application.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An
unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
Line 38: <li>@Html.ActionLink("PageConfig", "Index", "PageConfigs")</li>
Line 39: <li>@Html.ActionLink("Pages", "Index", "Pages")</li>
Line 40: <li>@Html.Partial("Menu")</li>
Line 41:
Line 42:
Source File: S:\My Documents\Visual Studio 2015\Projects\CMSFC\CMSFC\Views\Shared\_Layout.cshtml Line: 40
please change @Html.Partial("Menu")</li> to @Html.Action("Menu")</li>,best records,Jolie.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Now the pages appear on menu , but everything else is not working. For example , if i click one on these pages on the menu like this :
http://localhost:53781/Pages/Details/1
Server Error in '/' Application.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An
unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
The model item passed into the dictionary is of type 'System.Data.Entity.Infrastructure.DbQuery`1[CMSFC.Models.ContentHtml]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Line 129: {
Line 130: // Html.RenderAction("Tabelar", "ContentHtml", module.Control);
Line 131: Html.RenderAction(module.Control, "ContentHtml", new { id = module.Content });
Line 132: }
Line 133:
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
it should be, Html.Action("Tabelar", new { id = module.Content }); please use static value at first time.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An
unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
so you need show us details view page.and details action method.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
@model IEnumerable< MVCGuo.Models.Profile >
@{
ViewBag.Title = "Menu";
}
@foreach (var item in Model )
{
<li>@Html.ActionLink("P", "Details", new { id = item.ProfileId })</li>
}
<h2>Menu</h2>
Best regards,
Angelina Jolie
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
How to add a page on menu , based on checkbox value ?
Sep 05, 2017 08:09 AM|ddgg|LINK
This is the controller :
<pre> [HttpPost]
[ValidateAntiForgeryToken]
public ActionResult Create([Bind(Include = "Id,Template,ShowOnMeny")] Page page)
{
if (ModelState.IsValid)
{
db.Pages.Add(page);
db.SaveChanges();
return RedirectToAction("Index");
}
return View(page);
}</pre>
This is the Create view :
<pre>@model CMSFC.Models.Page
@{
ViewBag.Title = "Create";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Create</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Page</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.Template, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Template, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Template, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ShowOnMeny, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div class="checkbox">
@Html.EditorFor(model => model.ShowOnMeny)
@Html.ValidationMessageFor(model => model.ShowOnMeny, "", new { @class = "text-danger" })
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</div>
</div>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
</pre>
How can i achieve , if checkbox is checked (true) , to show that page on menu .
This is the Layout(menu) view :
<pre><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@* @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })*@
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Index", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.ActionLink("News", "Index", "ContentHtml")</li>
@if (User.Identity.IsAuthenticated)
{
if (User.IsInRole("Admin") || User.IsInRole("Guest"))
{
<li>@Html.ActionLink("PageConfig", "Index", "PageConfigs")</li>
<li>@Html.ActionLink("Pages", "Index", "Pages")</li>
}
}
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
</div>
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p></p>
</footer>
</div>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
</body>
</html>
</pre>
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 06, 2017 07:18 AM|AngelinaJolie|LINK
Hi ddgg,
Please refer to this way to add a page based on checkbbox value;
In your main view page:
please let me know if any problem;
With regards,
Angelina Jolie
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 06, 2017 07:31 AM|ddgg|LINK
Hmm sir/miss , im not understanding this close exactly ..
So when i hit create page and check TRUE the checkbox , example Page "Test",that page should be on the menu . In the Layout view i sent above , here in this section :
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Index", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.ActionLink("News", "Index", "ContentHtml")</li>
@if (User.Identity.IsAuthenticated)
{
if (User.IsInRole("Admin") || User.IsInRole("Guest"))
{
<li>@Html.ActionLink("PageConfig", "Index", "PageConfigs")</li>
<li>@Html.ActionLink("Pages", "Index", "Pages")</li>
}
}
</ul>
@Html.Partial("_LoginPartial")
</div>
Then , that recently-created page "Test" should show on Menu like this :
<li>@Html.ActionLink("PageConfig", "Index", "PageConfigs")</li>
<li>@Html.ActionLink("Pages", "Index", "Pages")</li>
====HERE COMES TEST PAGE TAB =======
====HERE COMES TEST1 PAGE TAB=======
AND SO ON.....
So this is the Layout view of entire application:
<pre><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title - My ASP.NET Application</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
@* @Html.ActionLink("Application name", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })*@
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li>@Html.ActionLink("Index", "Index", "Home")</li>
<li>@Html.ActionLink("About", "About", "Home")</li>
<li>@Html.ActionLink("Contact", "Contact", "Home")</li>
<li>@Html.ActionLink("News", "Index", "ContentHtml")</li>
@if (User.Identity.IsAuthenticated)
{
if (User.IsInRole("Admin") || User.IsInRole("Guest"))
{
<li>@Html.ActionLink("PageConfig", "Index", "PageConfigs")</li>
<li>@Html.ActionLink("Pages", "Index", "Pages")</li>
}
}
</ul>
@Html.Partial("_LoginPartial")
</div>
</div>
</div>
<div class="container body-content">
@RenderBody()
<hr />
<footer>
<p></p>
</footer>
</div>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
</body>
</html>
</pre>
So how to fit these two ?!
This is create view:
<pre>@model CMSFC.Models.Page
@{
ViewBag.Title = "Create";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Create</h2>
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="form-horizontal">
<h4>Page</h4>
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.Template, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Template, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Template, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ShowOnMeny, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
<div class="checkbox">
@Html.EditorFor(model => model.ShowOnMeny)
@Html.ValidationMessageFor(model => model.ShowOnMeny, "", new { @class = "text-danger" })
</div>
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-default" />
</div>
</div>
</div>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
</pre>
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 02:53 AM|AngelinaJolie|LINK
Hi ddgg,
Very sorry for my later , it 's my mistake:) .
Based on your code , we could just keep your Layout page and put something code into Create Page:
at Layout.cshtml:
at create page:
Best regards,
Angelina Jolie
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 10:56 AM|ddgg|LINK
here is what i did :
and in layout:
But im getting this error :
Server Error in '/' Application.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
Line 38: <li>@Html.ActionLink("PageConfig", "Index", "PageConfigs")</li> Line 39: <li>@Html.ActionLink("Pages", "Index", "Pages")</li> Line 40: <li>@Html.Partial("Menu")</li> Line 41: Line 42:
Source File: S:\My Documents\Visual Studio 2015\Projects\CMSFC\CMSFC\Views\Shared\_Layout.cshtml Line: 40
Stack Trace:
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 11:14 AM|AngelinaJolie|LINK
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 11:23 AM|ddgg|LINK
Now the pages appear on menu , but everything else is not working. For example , if i click one on these pages on the menu like this :
http://localhost:53781/Pages/Details/1
Server Error in '/' Application.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Another error :
http://localhost:53781/
Server Error in '/' Application.
The model item passed into the dictionary is of type 'System.Data.Entity.Infrastructure.DbQuery`1[CMSFC.Models.ContentHtml]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'System.Data.Entity.Infrastructure.DbQuery`1[CMSFC.Models.ContentHtml]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
Line 129: { Line 130: // Html.RenderAction("Tabelar", "ContentHtml", module.Control); Line 131: Html.RenderAction(module.Control, "ContentHtml", new { id = module.Content }); Line 132: } Line 133:
Source File: S:\My Documents\Visual Studio 2015\Projects\CMSFC\CMSFC\Views\Home\Index.cshtml Line: 131
All-Star
53751 Points
24069 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 11:31 AM|mgebhard|LINK
Perhaps explain what you are trying to do at a high level. Are you trying to create a table driven menu?
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 11:33 AM|ddgg|LINK
No , i have a layout view that contains the app menu like this:
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 11:48 AM|AngelinaJolie|LINK
what's Tabelar method?and please check error massage in details.it needs page list.
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 11:49 AM|ddgg|LINK
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 11:55 AM|AngelinaJolie|LINK
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 12:01 PM|ddgg|LINK
Okay , that is done .What about the first error when im clicking to one of added pages in menu:
http://localhost:53781/Pages/Details/1
Server Error in '/' Application.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 12:10 PM|AngelinaJolie|LINK
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 12:13 PM|ddgg|LINK
just this url works fine :
http://localhost:53781/Pages/
when i click on the pages in menu like this :
http://localhost:53781/Pages/Details/1
it alerts this error :
Server Error in '/' Application.
The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.InvalidOperationException: The model item passed into the dictionary is of type 'CMSFC.Models.Page', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[CMSFC.Models.Page]'.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.6.1
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 12:14 PM|AngelinaJolie|LINK
so you need show us details view page.and details action method.
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 12:15 PM|ddgg|LINK
Contributor
5290 Points
2307 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 15, 2017 12:18 PM|AngelinaJolie|LINK
Hi ddgg,
I did an complete project and it has no any error with CURD page based on your code ;
Here is the full code:
in layout.cshtml:
then ,in ProfilesController .cshtml:
public class ProfilesController : Controller { private ApplicationDbContext db = new ApplicationDbContext(); public ActionResult Menu() { return PartialView("Menu", db.Profiles.ToList() ); } // GET: Profiles public ActionResult Index() { return View(db.Profiles.ToList()); } // GET: Profiles/Details/5 public ActionResult Details(int? id) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } Profile profile = db.Profiles.Find(id);
and in index.cshtml:
in detail.shtml:
in Menu.cshtml:
Best regards,
Angelina Jolie
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
43 Points
106 Posts
Re: How to add a page on menu , based on checkbox value ?
Sep 18, 2017 10:44 AM|ddgg|LINK
I did something different :
Layout:
The partial view :
action:
I dont know whyy , but today this is workingg !!! maybe that is monday haha . Anyway thanks for all your contribute , it really helped me.
This is Layout view :
</div> </div>