hi
i use url routing according to this article
http://msdn.microsoft.com/en-us/library/cc668202%28v=vs.90%29.aspx
in global.asax i use this code
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("BikeSaleRoute", new Route
(
"{Data}/",
new CustomRouteHandler("~/Details.aspx")
));
}
here when i write behtob.com/1111 or behtob.com/test it go to details.aspx page i want instead of {Data} it read behtop column from my DB and according to that behcode it go to details.aspx and fill that page with user's information that have behcode in address bar i want bind it from data base
Id
|
Behcode
|
Name
|
Description
|
image
|
1
|
2222
|
Iron
|
Test
|
1.jpg
|
4
|
3333
|
Laundry
|
Test
|
2.jpg
|
I want some thin like facebook.
thanks