I saw people use asterisk sign at the time of routing in webform. i just do not understand the importance of Asterisk sign like below one
routes.MapPageRoute(
"View Category", // Route name
"Categories/{*CategoryName}", // Route URL
"~/CategoryProducts.aspx" // Web page to handle route
);
what is the meaning of asterisk sign and also tell me what kind of situation i should use asterisk sign like above.
"Categories/{*CategoryName}"
it would be better if anyone come with small sample code of using Asterisk sign just to show the importance & use of asterisk sign in real life apps.
It is called catch all route mapping. See the below question as well :