Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6547911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:53:17+00:00 2026-05-25T11:53:17+00:00

I am implementing the URL Routing in my asp.net application, in that my some

  • 0

I am implementing the URL Routing in my asp.net application, in that my some rules are conflicting.
below is my some rules which is conflicting:

RouteTable.Routes.Add("QuestionSubject",
    new Route("questions/{subjectname}/{pageno}",
    new RouteValueDictionary { { "pageno", null } },
    new RouteValueDictionary { { "pageno", @"^[0-9]*$" } },
    new EventRouteHandler("~/questionsitemap/subject.aspx")));

RouteTable.Routes.Add("QuestionSubjectTopic",
    new Route("questions/{subjectname}/{topicname}/{pageno}",
    new RouteValueDictionary { { "pageno", null } },
    new RouteValueDictionary { { "pageno", @"^[0-9]*$" } },
    new EventRouteHandler("~/questionsitemap/topic.aspx")));

RouteTable.Routes.Add("QuestionGrade",
    new Route("questions/{gradename}/",
    new EventRouteHandler("~/questionsitemap/grade.aspx")));

RouteTable.Routes.Add("QuestionSubjectGrade",
    new Route("questions/{gradename}/{subjectname}/",
    new EventRouteHandler("~/questionsitemap/grade.aspx")));

RouteTable.Routes.Add("QuestionSubjectTopicGrade",
    new Route("questions/{gradename}/{subjectname}/{topicname}/",
    new EventRouteHandler("~/questionsitemap/grade.aspx")));

In this when I am requesting to open the QuestionGrade rule it is calling the QuestionSubject because the rules are similar for both, same happened for others rule.

Please any one help me to find out the solutions for this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:53:17+00:00Added an answer on May 25, 2026 at 11:53 am

    You’ll need to make them more specific since the routing engine can’t distinguish between {subjectname} and {gradename}. Can you use something like the following, which adds /subject/ and /grade/ to your routes?

    RouteTable.Routes.Add("QuestionSubject",
        new Route("questions/subject/{subjectname}/{pageno}",
        new RouteValueDictionary { { "pageno", null } },
        new RouteValueDictionary { { "pageno", @"^[0-9]*$" } },
        new EventRouteHandler("~/questionsitemap/subject.aspx")));
    
    RouteTable.Routes.Add("QuestionGrade",
        new Route("questions/grade/{gradename}/",
        new EventRouteHandler("~/questionsitemap/grade.aspx")));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm implementing StructureMap in a multi-tenant ASP.NET MVC application to inject instances of my
I am implementing URL rewriting in ASP.net and my URLs are causing me a
I am implementing an application that which is having a UIWebView. My problem is
Some sites, like here at SO, allow 'bogus' slugs in the URL. Before implementing
I'm working on an application that will be implementing a hex value as a
Basically I'm trying to open a URL in my .NET application. This can be
I'm implementing a content database for a C# Asp.Net MVC3 website in Sql Server.
I'm implementing a URL shortening feature in my application in order to provide my
if possible then please provide me code for implementing url routing. suppose i have
I am implementing as asp.net website to act as a multi language website template

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.