Skip to content

Instantly share code, notes, and snippets.

View paullaros's full-sized avatar
🚢
Shipping

Paul Laros paullaros

🚢
Shipping
View GitHub Profile
@ChrisWay
ChrisWay / HtmlHelpers.cs
Last active August 29, 2018 06:34
ASP.NET MVC - Twitter Bootstrap navbar link helper
using System.Web.Mvc.Html;
public static class HtmlHelpers
{
public static MvcHtmlString MenuLink(this HtmlHelper htmlHelper, string linkText, string actionName, string controllerName)
{
var currentAction = htmlHelper.ViewContext.RouteData.GetRequiredString("action");
var currentController = htmlHelper.ViewContext.RouteData.GetRequiredString("controller");
var builder = new TagBuilder("li")
@dideler
dideler / bootstrapping.md
Last active May 8, 2024 14:38
Bootstrapping - a list of useful resources to get up and running quickly

Welcome!

UPDATE: This list is no longer maintained. I've moved it to its own repo so you can send suggestions as Pull Requests. https://github.com/dideler/bootstrapping/

For feedback or suggestions, please send a tweet (@dideler). Gist comments don't notify me. Pull requests aren't possible with gists (yet), so I don't recommend forking because then I can't easily get the change.

Starring this gist will give me an idea of how many people consider this list useful.