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.
More Related Contents:
- Injecting content into specific sections from a partial view ASP.NET MVC 3 with Razor View Engine
- Adding sub-directory to “View/Shared” folder in ASP.Net MVC and calling the view
- How to get the current view name in asp.net MVC 3?
- include antiforgerytoken in ajax post ASP.NET MVC
- MVC3 and Entity Framework
- Is it possible to use Razor View Engine outside asp.net
- MVC Razor view nested foreach’s model
- How to render a DateTime in a specific format in ASP.NET MVC 3?
- How to retrieve form values from HTTPPOST, dictionary or?
- How do I render a partial form element using AJAX
- ASP.NET MVC Url Route supporting (dot)
- mvc uppercase Model vs lowercase model
- Infinite URL Parameters for ASP.NET MVC Route
- How to warm up an ASP.NET MVC application on IIS 7.5?
- ASP.Net MVC 4 Form with 2 submit buttons/actions
- Can I serve .html files using Razor as if they were .cshtml files without changing the extension of all my pages?
- ASP.NET MVC – Session is null
- How to Kill A Session or Session ID (ASP.NET/C#)
- Serving favicon.ico in ASP.NET MVC
- “Parser Error Message: Could not load type” in Global.asax
- double escape sequence inside a url : The request filtering module is configured to deny a request that contains a double escape sequence
- Deploying ASP.NET MVC4 App to GoDaddy Compiler issue
- ASP.NET MVC3 Role and Permission Management -> With Runtime Permission Assignment
- Does the Razor View Engine work for Mono?
- Using a Razor @functions in several webpages (.cshtml files)
- How to use multiple form elements in ASP.NET MVC
- Asp.Net MVC3, returning success JsonResult
- IValidatableObject Validate method firing when DataAnnotations fails
- ASP.NET MVC alongside Web Forms in the same web app?
- How does Html.Raw MVC helper work?