PC Review


Reply
Thread Tools Rating: Thread Rating: 4 votes, 1.00 average.

asp.net MapPageRoute order of precedence

 
 
moke
Guest
Posts: n/a
 
      4th Jun 2010
I am attempting to use the MapPageRoute feature in Visual Studio 2010 and
..NET Framework 4.0.

What I have noticed is that if I define a page route called "Default" like
below and the page Default.aspx exists in the project, then the route does
not work.

routes.MapPageRoute("Default", "default.aspx", "~/Page2.aspx");
routes.MapPageRoute("Test", "test.aspx", "~/Page2.aspx");

If I change the name of the Default.aspx in the project to Default_1.aspx,
then the route works fine.

There seems to be some order of precedence going on. Is there a way to make
my route definitions evaluated first so I don't have to rename my pages to
use the routing engine?

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested JOIN clauses - order of precedence (Access 2007) Tokyo Alex Microsoft Access Queries 2 7th Apr 2010 12:54 PM
With formulas does anyone know the order of precedence BOMDAS =?Utf-8?B?U2FtYW50aGE=?= Microsoft Excel Worksheet Functions 9 14th Nov 2005 08:48 AM
Operator precedence (order of operate) =A1/A2*A3^5-(A1+A2) Masood Shahab Microsoft Excel Discussion 7 8th Sep 2005 02:33 PM
RichTextFind methods order of precedence ? =?Utf-8?B?dGNsb3Vk?= Microsoft VB .NET 3 5th Jul 2005 11:05 AM
network connection precedence/order =?Utf-8?B?Qmx1ZXdhdGVyUm9ja2V0?= Windows XP Networking 1 18th Mar 2004 12:35 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:34 AM.