In my HomeController I'm trying to get information using Request.QueryString
string aa = Request.QueryString["aa"];
string bb = Request.QueryString["bb"];
So In the address bar I am expecting something like:
< something >?aa=12345&bb=67890
I created a new route:
routes.MapRoute(
"Receive",
"Receive",
new { controller = "Home", action = "Index" }
);
And I'm trying to use it in this way:
http://localhost:54321/Receive?aa=12345&bb=67890
But I'm getting the following error:
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /Receive