How to import a namespace in Razor View Page?

1Best Answer
11

Finally found the answer.

@using MyNamespace

For VB.Net:

@Imports Mynamespace

Take a look at @ravy amiry’s answer if you want to include a namespace across the app.

Leave a Reply

Your email address will not be published. Required fields are marked *