Trying to apply some specific bootstrap layouts turned into strange results. For example I simple wanted to horizontally centering an input box, or one of these special composite bootstrap controls combining an Input box and a button left or right side, within a md-12 row and got a layout result that aligns the Input box left side and the button right side. The Level of strangeness depends on the current size of the viewport e.g. mobile phone vs. desktop monitor.
To resolve this issue I did a lot of stackoverflow but without any result.
I ended up with a simple approach: Remove the site.css file from spa template completely and andapt the bündle.config then.
This "tweak" works for me and did not result in any new layout issues ;-): The bootstrap Composite controls are now aligned/centered as expected.
Dissecting And Refactoring Visual Studio 2013 SPA Template
This private blog solely depicts (IMHO) the "Visual Studio 2013 SPA template" that is focussed on Single Page Application web development using JavaScript, JQuery, knockout.js on the client side and WEB.API in conjunction with OWIN cookie authentication middleware on the server side. (All diagrams / images by author, all Information for illustration use only). Unfortunately the author did dissecting with a DE localized VS2013 Ultimate evaluation edition. I'm so sorry about that !
Freitag, 17. Oktober 2014
Donnerstag, 16. Oktober 2014
ASP.NET MVC5: Organizing large solutions with areas
A working example by code snob:
http://codesnob.wordpress.com/2014/03/06/mvc-area-in-an-external-assembly/
and the source code (vs solution):
https://github.com/drydenmaker/PMMA-MVC
Advice:
Perhaps if you are encountering an jquery error on executing too then please check the _Layout.cshtml file. Scroll to bottom of file and look for this stuff:
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
If the line @Scripts.Render("~/bundles/jquery"
) is missing then please insert this code snippet right before
@Scripts.Render("~/bundles/bootstrap")
Then it will work properly !
Thanks.
http://codesnob.wordpress.com/2014/03/06/mvc-area-in-an-external-assembly/
and the source code (vs solution):
https://github.com/drydenmaker/PMMA-MVC
Advice:
Perhaps if you are encountering an jquery error on executing too then please check the _Layout.cshtml file. Scroll to bottom of file and look for this stuff:
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@RenderSection("scripts", required: false)
If the line @Scripts.Render("~/bundles/jquery"
) is missing then please insert this code snippet right before
@Scripts.Render("~/bundles/bootstrap")
Then it will work properly !
Thanks.
Donnerstag, 6. März 2014
Abonnieren
Posts (Atom)