i use url rewrite code in my project as below
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("RestaurantRoute", "Restaurant/{City}/{RestaurantName}/{id}", "~/Restaurant/Restaurant.aspx",
new RouteValueDictionary { { "id", "17348" } },
new RouteValueDictionary { { "id", @"^\d+$" } });
}
it works, but links on Restaurant.aspx page are changed. my actual image link is
<img id="Img2" src="~/Image/locationico.png" height="20" runat="server" />
after using url rewrite it takes something like that
<img id="Img2" src="~/Restaurant/{City}/{RestaurantName}/{id}/Image/locationico.png" height="20" runat="server" />
please help me to solve problem