hi
this is my last thread
http://www.aspforums.net/Threads/141680/Pass-Custom-Data-through-URL-Routing-in-ASPNet/
in details.aspx i have datalist that have 3 lable and 1 image when i write this code in global.aspx
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("BikeSaleRoute", new Route
(
"bikes/{Data}",
new CustomRouteHandler("~/Details.aspx")
));
}
when i type behtob.com/bikes/1111 in addressbar it go to details.aspx and show this page with datalist that fill from my db 3 lables and 1 image
but when i write this code in my global.asax
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("BikeSaleRoute", new Route
(
"{Data}/",
new CustomRouteHandler("~/Details.aspx")
));
}
i should type behtob.com/1111 in address bar it go to details.asax but in my datalist just show 3labales that i bind from db it did'nt show image that i bind from DB what should i do? I want use second code.
thanks