Hi,
I have only used MapRoute and slightly wondering where Routes.Add is used and on what scenario and how it differs from MapRoute?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Arjun PanwarPosted Mar 27, 2012, 4:11 AM
Jignesh TrivediPosted Mar 27, 2012, 12:33 AM
MapRoute() is an extension method over Routes.Add(). Use MapRoute(), unless you need to do something more complex than it allows.
Routes are evaluated in the order they are defined, so those you called first.
please refer morehttp://msdn.microsoft.com/en-us/library/cc668201.aspx
hope this help.