Search code examples
asp.net-mvcurlparametersquerystringparameter

Options to get data from web page


What to use and when (or: what you would choose and why):

  1. default route and query string only
  2. routing (changes only) without query string

Solution

    1. Clean Global.Asax - you dont need to treat every param, but to use patterns.
    2. Security - for the simple users it will not intuitive to edit the param value in one mouse-click at the uri line.
    3. You can simplify the site structure by using canonical form of URLs
    4. You can hide the aspx extention, ‘?’ and ‘&’ characters in the query string
    5. Helps you in SEO thru the refined site structure
    6. 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.