Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am binding here href link in
  • tag from database.
    i used below coding to routing the URL but i am unable to redirect with exact page,


    which url i am binding into the href tag, the same data displaying in browser URL.

    in .cs page


  • TEST12");


    in global.asax page

    C#
    private static void RegisterRoutes()
        {
            System.Web.Routing.RouteTable.Routes.Add("Gallery", new System.Web.Routing.Route("Gallery/{Mcatgry}/{Sbcatgry}",
                 new System.Web.Routing.PageRouteHandler("~/new_gallery.aspx")));
        }





    getting error url

    http://localhost:51668/xxxx/%3C%$RouteURl:Routename=Gallery,Mcatgry=Oil%20Pastels,Sbcatgry=TT%%3E



    EXpecting URL

    localhost:51668/xxxx/Gallery/Oil/TT
  • Posted
    Comments
    Mehdy Moini 17-Sep-13 13:20pm    
    So why didn't you call the URL expected?? why didn't you put : localhost:51668/xxxx/Gallery/Oil/TT in your href??

    This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



    CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900