c# - Url Routing Rule is conflicting -


I am implementing URL routing in my ASP.NET application, some of my rules are disputed. Below are some of my rules which are conflicting:

  rootable.rout.ed. ("query", new route ("question / {subjectname} / {pages}", new rootwolation {{" ("~~~ / questionitemap / subject.aspx")); ("Question topic", "New Topic"), New RootValueation {{"PageO", @ "^ [0-9] * $"}} Route ("question / {subject}" / {subject name} / {pages} ", new root assignment {{" pages ", tap}}, new rootvolution {{" pages ", @" ^ [0-9] * $ "} }, New event lift handler ("~ / question ("Query / {grade name}", new event lift handler ("~ / questionitemap / grade.aspx")); route tabs RouteAd. ("QuestionSubsGrid", new route ("question / {gradename} / {subject}}", new event lift handler ("~ / questionitemap / grade.aspx")); New route ("question / {gradename} / {subject}} / {subjectname} /", new event lift handler ("~ / questionitemap / grade.aspx"));   

Strong> FAQ I am requesting to open the rule, then it is calling question topic because the rules are the same for both, same

>

You will need to make them more specific because the routing engine {subjectname} and {gradename} Can not distinguish between Can you use something like the following, which adds / subject / and / grade / to your paths?

  RouteTable.read.ed ("question-related", new route ("question / subject / {subject name} / {pages}", new root assignment {{"pages", tap}} , New RootViewication {{"Pages", @ "^ [0- 9] * $"}}, New Event Handle Handler ("~ / questionitemap / subject.aspx")); MargTab.Route Add ("questionagad", new route ("question / grade / {gradename} /", new event lift handler ("~ / questionitemap / grade.aspx"));    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -