tags:

views:

39

answers:

2

i have the website asp.net html and asp.net mvc. i can not to work 2 website in 1 website

A: 

yes, i can not rutes url from mvc to web html. and I can not run page html

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
OK Thank you very much . I do then