Hi @Ibrar Tariq,
You can choose the method based on your needs: IIS URL rewriting and ASP.NET routing.
In a Web Forms application, you create routes by using the MapPageRoute(String, String, String) method of the RouteCollection class. The MapPageRoute method creates a Route object and adds it to the RouteCollection object. You specify properties for the Route object in parameters that you pass to the MapPageRoute method.
RouteConfig
public static void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("products", "products123.aspx", "~/products/product123.aspx");
}
Best regards,
Lan Huang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.