Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
Calling all developers! We invite you to provide your input on Feature Experimentation by completing this brief survey.
You can use PageRouteHelper
var pageRouteHelper = ServiceLocator.Current.GetInstance<PageRouteHelper>(); var pageTypeName = pageRouteHelper.Page.PageTypeName;
How to get Page type name from the current block View (CSHTML file), if the block is placed in the content area of a page