So I'm trying to learn how MapPageRoute
works, and I was wondering: "How do you read the parameters given in an url?".
So far I've tried this:
routes.MapPageRoute(
"exportparts",
"exportparts/{company}/{ditono}",
"~/Source/1UI/ExportParts.aspx");
But when I try to read the parameters like this:
string company = (string)Page.RouteData.DataTokens["company"];
the dictionary is empty. How do I read parameters?