infinitedreams13
06-27-2008, 05:30 AM
Thanks toLiam Westley for pointing me in the right direction. http://community.discountasp.net/default.aspx?m=22822&f=33&p=1
Make sureyour global.asax.cs includes:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}.mvc.aspx/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
andyour Default.aspx.cs has:
public void Page_Load(object sender, System.EventArgs e)
{
Response.Redirect("~/Home.mvc.aspx");
}
Make sureyour global.asax.cs includes:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.MapRoute(
"Default", // Route name
"{controller}.mvc.aspx/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = "" } // Parameter defaults
);
}
andyour Default.aspx.cs has:
public void Page_Load(object sender, System.EventArgs e)
{
Response.Redirect("~/Home.mvc.aspx");
}