Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Created December 18, 2013 15:55
Show Gist options
  • Select an option

  • Save masaru-b-cl/8024740 to your computer and use it in GitHub Desktop.

Select an option

Save masaru-b-cl/8024740 to your computer and use it in GitHub Desktop.
One ASP.NET Calendar 2013 - FriendlyURLsの有効化
using System;
using System.Web.Routing;
using Microsoft.AspNet.FriendlyUrls; // <- 追加
namespace FriendlyURLsSample
{
public class Global : System.Web.HttpApplication
{
protected void Application_Start(object sender, EventArgs e)
{
var routes = RouteTable.Routes;
routes.EnableFriendlyUrls(); // <- FriendlyURLsを有効に
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment