Sub RegisterRoutes(routes As System.Web.Routing.RouteCollection) routes.MapPageRoute("", "{DesignerID}", "~/PDesigners.aspx") routes.MapPageRoute("", "Products/{ProductID}", "~/Product.aspx") End Sub Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs) ' Code that runs on application startup RegisterRoutes(System.Web.Routing.RouteTable.Routes) End Sub
<a href='<%# GetRouteUrl("",new with {.ProductID=Eval("ProductID")})%>' class="product-image"> <img src='UploadedImages/Products/big/<%# EVAL("PictureID")%>' alt='<%# Eval("ProductTitle") %>' width="165" height="161" /> <asp:Label ID="ProductImageLabel" runat="server" Text='<%# Eval("PictureID") %>' Visible="false" /> </a>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)