Created
December 18, 2013 15:55
-
-
Save masaru-b-cl/8024740 to your computer and use it in GitHub Desktop.
One ASP.NET Calendar 2013 - FriendlyURLsの有効化
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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