Quantcast
Channel: Web API
Viewing all articles
Browse latest Browse all 4850

Routing with parameter and parameter not included on URL

$
0
0

I've seen a few examples about routing using parameters, but the parameters are included on the URL.

Something like this example:

Request to /Default.aspx?lk=login  ==> route to /Auth/Login.aspx

Request to /Default.aspx?lk=CHPass==> route to /Auth/ChangePassword.aspx

This meant that on Application_Start I'll read from a table with the short name and the real URL, and make all the routes, and maybe a sessions flag to avoid attempt add to duplicated routes.

Is it possible make something like this?


Viewing all articles
Browse latest Browse all 4850

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>