I am using global file to rewrite URL, rewriting works fine for other url just one rule is not working which makes all ajax/button clicks stop. All my button clicks works fine when i use:
routes.MapPageRoute("BusinessDetails", "bd/{PageUrl}", "~/business-details.aspx")
but i dont want this type of url:
'www.mywebsite/com/bd/business'
i need this
'www.mywebsite.com/business'
for this am using
routes.MapPageRoute("BusinessDetails", "{PageUrl}", "~/business-details.aspx")
but this stops all button clicks though i get the needed url and site works just stops all button clicks/update pannel/validation.
I need this url to work with all button clicks
www.mywebsite/com/business or
www.mywebsite.com/business
www.mywebsite.com/business/
like this works in indiamart
What I have tried:
Tried using 'routes.Ignore("{webresource}.axd/{*pathInfo}")' for button click as was getting error in console 'Unexpected token <' in webresource.axd
Also tried
routes.MapPageRoute("BusinessDetails1", "{PageUrl}/{categoryName}", "~/business-details.aspx", false, New RouteValueDictionary(New With {.categoryName = "home"}))
And also when i click on button it says in console 'Page_ClientValidate is not defined'