问题
What to use and when (or: what you would choose and why):
- default route and query string only
- routing (changes only) without query string
回答1:
- Clean Global.Asax - you dont need to treat every param, but to use patterns.
- Security - for the simple users it will not intuitive to edit the param value in one mouse-click at the uri line.
- You can simplify the site structure by using canonical form of URLs
- You can hide the aspx extention, ‘?’ and ‘&’ characters in the query string
- Helps you in SEO thru the refined site structure
- Since the URL structure is simplified, the application is easily portable to a non ASP platform as the URLs don’t have aspx in them.
来源:https://stackoverflow.com/questions/45835759/options-to-get-data-from-web-page