hi every one
i use url routing according to this article
http://msdn.microsoft.com/en-us/library/cc668202%28v=vs.90%29.aspx
this is global.asax code
void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
public static void RegisterRoutes(RouteCollection routes)
{
routes.Add("BikeSaleRoute", new Route
(
"bikes/sale",
new CustomRouteHandler("~/Details.aspx")
));
}
here when we type eg:www.behtob.com/bikes/sale it go to details.aspx now i want instead of bikes/sale that define here it read Behcode column from DB and when my user type their becode like this www.behtob.com/1111 it go to details.aspx
how i can doo it?
this is my users table
Id
|
Behcode
|
name
|
description
|
1
|
1111
|
Jack
|
Test
|
2
|
2222
|
Sara
|
test
|