How do I import a namespace in Razor View Page?

Amitabh picture Amitabh · Jul 13, 2010 · Viewed 293.4k times · Source

How to import a namespace in Razor View Page?

Answer

Amitabh picture Amitabh · Jul 14, 2010

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.