i have the website asp.net html and asp.net mvc. i can not to work 2 website in 1 website
A:
public static void RegisterRoutes(RouteCollection routes)
{
routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
routes.IgnoreRoute("{file}.htm");
routes.IgnoreRoute("{file}.html");
routes.MapRoute(
"Default", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
);
routes.MapRoute(
"ViewGallery", // Route name
"{controller}/{action}/{id}", // URL with parameters
new { controller = "ViewGallery", action = "ViewAlbum", id = UrlParameter.Optional } // Parameter defaults
);
routes.MapRoute("index",
"{file}",
new {file = "index.html" });
}
I example code can not use ,Where is put in html file? Now I put in Publish folder .But It can not run page from route "index".
This is part of your question, and not an answer. You should edit your question and add this text there.
Prutswonder
2010-04-29 10:24:53
OK Thank you very much . I do then
2010-04-29 10:55:41