I would like know if there's any way to avoid using the keyword @using in every page to import some code.
An example: I would like to use @Styles.Render("~/js/jquery-ui")
in some pages and I don't want to manually write @using System.Web.Optimization
.
I saw in a blog that I can add a namespace in <page>
in web.config
, but I tried this but it doesn't work.
Is there any way?