Last post Jul 24, 2017 07:21 AM by Billy Liu
Jul 22, 2017 07:10 AM|alidalir|LINK
I have corrected my web site's url by url routing in asp.net webform.
now pages url is : for example producs; site . com/product/101/pc
the content that show is pc's content.
if I changed it to:
site . com/product/101/Hi
the content that show is pc's page. because 101 is pc's id in database. now I want if pc changed in url but 101 still,automaticlly redirect to the page that id refer to.please help me
Jul 24, 2017 07:21 AM|Billy Liu|LINK
Do you want that whatevet the last part of url is ,the page always refer to pc's content?
If so, you could set it in Global.asax.
public class Global : HttpApplication
void Application_Start(object sender, EventArgs e)
// Code that runs on application startup
void RegisterRoutes(RouteCollection routes)
You could refer to link below for a tutorial: