Identify What Page Type I am on

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
11 năm cách đây
I have some javascript tracking code I need to put on all pages.  If the page is a product page, the js will be different, than if it was on the home page or a category page.  The cart is easy, I can do routeData.Values["controller"].ToString().Equals("checkout", StringComparison.InvariantCultureIgnoreCase something like that.  But the product pages and landing pages use friendly urls that are different.  What is the easiest way for me to do this.
11 năm cách đây
Got it
routeData.Values["action"].ToString().Equals("checkout", StringComparison.InvariantCultureIgnoreCase
this let me know what action was firing so I new what page I was on.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.