void RegisterRoutes(RouteCollection routes)
{
routes.MapPageRoute("cats", "categories/{ct1}/{ct2}", "~/mypage1.aspx", false, new RouteValueDictionary { {"catname",""}});
routes.MapPageRoute("lists", "lists/{li1}/{li2}", "~/mypage2.aspx", false, new RouteValueDictionary { {"liname",""}});
}
and I have registered routes
protected void Application_Start(object sender, EventArgs e)
{
RegisterRoutes(RouteTable.Routes);
}
but the problem is the first route works perfectly but it says resource not found
in second route
the annoying thing is it is finding the proper route because if I comment the second route then it will give compile
time error of no matching routes. I tried to redirect to the route with different methods but none works..
this is working
<a href='<%# GetRouteUrl("cats",new {ct=Eval("Category_Id"),catname=Eval("Category_Name")}) %>'
but this doesnt
<a href='<%# GetRouteUrl("lists",new {lid= Eval("List_Id"),liname=Eval("List_Name_Url")}) %>'>
it doesnt work even from code behind..
I even changed the route and added 1 more parameter and changed accordingly, but still it didn't find it..I even removed the optional parameter setting from the lists
route, but still not working.. check the link below
Click on readmore
button or link in jquerytab
or on image
it is working on local
..
how does it works on local but not on server...
even when i put connection string of server in my local computer then it doesnt work....
it works on local with local connection string..