RazorBlade set Base tag in header
⚠️ WARNING: These examples only work in Dnn ☢️
2sxc 12 introduces the new
PageService
which also works in Oqtane 💧.
We suggest you use that instead. 👉 See
Razor Page Service
Note that to ensure this tutorial can run on all platforms, we've included some
#if NETCOREAPP
which changes what code runs on what platform.
Info about the Base Class
This tutorial inherits from the Custom.Hybrid.Razor14 base class.
This allows us to use Kit.Scrub to access IScrub without having to use GetService<>
This page sets the Base tag in the header. Look at the source of this page to see the result.
There are two ways to do this: