none
URL concatenate with another URL RRS feed

  • Question

  • Hi,

    I am developing project in VS2013with ASP.Net C#.

    In my project, I have following pages.

    Home->Default page

    Experts->Experts Page

    Contact Us->Contact page

    When I move cursor on LOGO, link display as "http://localhost:4145/Default"

    Also I have login and page content pages under Admin folder.

    Admin/Login->Login page

    Admin/PageContent -> PageContent page

    If I open Admin/Login page, then I click Home page (logo(Medicolegal Experts image)), the link display as http://localhost:4145/Admin/Default

    Could you please explain why the link concatenates with existing URL?

    Also please provide the solution to solve this issue?

    It is happened only in VS2013, in VS2010 the project working fine.

    Here my RouteConfig file code:

     public static class RouteConfig
        {
            public static void RegisterRoutes(RouteCollection routes)
            {
                var settings = new FriendlyUrlSettings();
                settings.AutoRedirectMode = RedirectMode.Permanent;
                routes.EnableFriendlyUrls(settings);

                routes.MapPageRoute(
                  "Page Informations",           // Route name
                  "{PageInfo}",                  // Route URL
                  "~/PageInfo.aspx"              // Web page to handle route
               );

                routes.MapPageRoute(
               "Home Page",           // Route name
               "Home",                  // Route URL
               "~/Default.aspx"              // Web page to handle route
           );
                routes.MapPageRoute(
            "Contactus Page",           // Route name
            "Contact",                  // Route URL
            "~/Contact.aspx"              // Web page to handle route
        );
                routes.MapPageRoute(
                      "Login Page",           // Route name
                      "Login",                  // Route URL
                      "~/Admin/Login.aspx"              // Web page to handle route
                  );

                routes.MapPageRoute(
          "PageContent Page",           // Route name
          "PageContent",                  // Route URL
          "~/Admin/PageContent.aspx"              // Web page to handle route
      );
                          
                
            }
        }

    Many Thanks,

    Regards

    Lalitha

    Saturday, May 10, 2014 4:57 AM

Answers

  • This forum is for users of Microsoft Project, an online project management system.  Please post in a more appropriate forum.

    Andrew Lavinsky [MVP] Blog: http://azlav.umtblog.com Twitter: @alavinsky

    Saturday, May 10, 2014 12:57 PM
    Moderator