Mohammad Aman

Mohammad Aman

  • Tech Writer
  • 327
  • 72.4k

URL Rewriting in Global.aspx file not working Correctly

Aug 27 2016 1:01 AM
I am implementing url rewriting in Global.aspx as follows below
 
1. routes.MapPageRoute("PartyGames-listing", "Party-Games/{TitleHeading}", "~/PartyGames.aspx");
 
2: routes.MapPageRoute("Party-Games-Detail", "Party-Games/{ReviewTitle}", "~/PartyGamesDetail.aspx");
 
 In these rules page name is different when i am redirecting on second page, But it is mapping first url not mapping to second rule. it is redirecting first page instead of second url.
How to resolve this problem  
 
 
 
Thanks  

Answers (3)