Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
URL Rewriting in Global.aspx file not working Correctly
Mohammad Aman
Aug 27 2016 1:01 AM
195
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
How to generate mvc application token to pass to Web Api.
how to create a layout for the partial view in mvc4 ?/