Profile photo
Submitted by Bikram Shrestha
on October 5th, 2012 at 16:09:51 EST

how to import reference in MVC Razor view?

how to import reference in ASP.NET Razor view? I can do this in ASPX view by using
<%@ Import Namespace="MyReference" %>

How do I do same with Razor?

Profile photo
Replied by SBajra
on October 8th, 2012 at 09:34:18 EST
User @using
For example:
@using MyReference 
Accepted Answer