locked
Url Routing Isuue RRS feed

  • Question

  • User-2062783045 posted

    Hi Friends,

     

    I am using routing in my asp.net application and not an mvc application. I specify the controller in Global.asax as "Categories" to call Categories.aspx page. When I call the category page after logging in successfully using the Categories Controller, an error occurs with this message "Error of page cannot be displayed". When I tried to call Categories.aspx then the category page is displaying well. But using routing if we call the controller "Categories" to get the page redirected after login, then it dont works. What might be the problem??

    Friday, April 3, 2009 12:08 AM

Answers

  • User-1557807525 posted

    Instead of Categories in the link use AdminPage

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 3, 2009 3:20 AM

All replies

  • User-1557807525 posted

    routes.MapRoute(

    "Categories",

    "Category/Page/{page}",

    new { controller = "Category", action = "Index" }

    );

    Could you please you have a routing like this. Give me the routing code you have.

    Friday, April 3, 2009 1:40 AM
  • User-2062783045 posted

     I am using simle asp.net application.there routecollection.Maproute is not a vallid attribute.So i cant gave the code provided by you.I have given the routing code like below

    Routes.Add("AdminPage", new Route("{Categories}/{Action}/{*Parameter}", new MEOSimpleRouteHandler()));

    Please help me.(Urgent) .

    Friday, April 3, 2009 1:57 AM
  • User-1557807525 posted

    Instead of Categories in the link use AdminPage

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, April 3, 2009 3:20 AM