Bootstrap and ASP.NET 4.0 master pages

Outdated: This post is preserved for reference and may no longer reflect current tools or services.

Working with Bootstrap in ASP.NET 4.0 master pages can be a little tricky out of the box, especially when script paths and validation scripts do not load as expected.

After a lot of searching for a demo that used ASP.NET inside a master page, I came across a post on geekswithblogs.net. However, the suggested ResolveUrl approach did not work correctly in my case.

After some more debugging, I found a Stack Overflow post that used ScriptManager. That finally got jQuery and the other scripts working properly.

I uploaded the example code to my GitHub repository, so hopefully it will be useful to anyone running into the same problem.

Please note that this example uses Web Forms and C#.