I´m using a Bootstrap 3 date AND time picker linked here:
DateTime Picker for Bootstrap 3
I can´t make the picking window open. When you click on the textbox, n
Your layout can be cleaned up a bit, since MVC4 no longer requires @Url.Content()
for virtual paths. You probably also want to look into how the bundling system works. For certain, what you're trying to do will probably work better with sections:
_Layout.cshtml:
TestApp
@RenderSection("head", required: false)
@RenderBody()
@RenderSection("scripts", required: false)
Index.cshtml:
@section head
{
}
@section scripts
{
}
Using sections lets the view engine inject things like or
tags into the correct parts of the layout. Anything not in a section is injected wherever
@RenderBody()
occurs in the layout.
If you want a more concrete example, go straight to the source: http://weblogs.asp.net/scottgu/archive/2010/12/30/asp-net-mvc-3-layouts-and-sections-with-razor.aspx