a575963da9
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
20 lines
542 B
C#
20 lines
542 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web;
|
|
using System.Web.Routing;
|
|
|
|
public partial class _Global : HttpApplication
|
|
{
|
|
void Application_Start (object sender, EventArgs e)
|
|
{
|
|
RouteTable.Routes.MapPageRoute ("SearchRoute", "search/{searchterm}", "~/search.aspx",
|
|
true,
|
|
new RouteValueDictionary {
|
|
{ "intValue", 123 },
|
|
{ "boolValue", false },
|
|
{ "doubleValue", 1.23 }
|
|
},
|
|
null, null);
|
|
RouteTable.Routes.MapPageRoute ("UserRoute", "users/{username}", "~/users.aspx");
|
|
}
|
|
} |