Gang Of Coders
Home
About Us
Contact Us
All Razor Solutions on Gang of Coders
Total of 228 Razor Solutions
How do I import a namespace in Razor View Page?
asp.net
asp.net Mvc-3
Razor
Webmatrix
Escape @ character in razor view engine
asp.net Mvc-3
Razor
Escaping
Using Razor within JavaScript
Javascript
asp.net Mvc
Razor
How to use ternary operator in razor (specifically on HTML attributes)?
Razor
asp.net Mvc-3
Writing/outputting HTML strings unescaped
asp.net Mvc
asp.net Mvc-3
Razor
How to declare a local variable in Razor?
C#
.Net
asp.net Mvc
asp.net Mvc-3
Razor
How to get current page URL in MVC 3
C#
asp.net
asp.net Mvc
Razor
Styles.Render in MVC4
C#
asp.net Mvc
Razor
asp.net Mvc-4
Injecting content into specific sections from a partial view ASP.NET MVC 3 with Razor View Engine
asp.net
asp.net Mvc
asp.net Mvc-3
Razor
Partial Views
ASP.NET MVC View Engine Comparison
asp.net Mvc
Spark View-Engine
Viewengine
Razor
HTML.ActionLink vs Url.Action in ASP.NET Razor
asp.net Mvc
asp.net Mvc-3
Razor
How do I specify different Layouts in the ASP.NET MVC 3 razor ViewStart file?
asp.net Mvc
Layout
asp.net Mvc-3
Razor
ASP.NET MVC 3 - Partial vs Display Template vs Editor Template
asp.net Mvc
asp.net Mvc-3
Razor
asp.net Mvc-Partialview
Editortemplates
Replace line break characters with <br /> in ASP.NET MVC Razor view
asp.net Mvc
asp.net Mvc-3
Razor
Serving favicon.ico in ASP.NET MVC
asp.net
asp.net Mvc
Razor
Favicon
ASP.NET MVC Razor render without encoding
C#
.Net
asp.net
asp.net Mvc
Razor
How to get the Display Name Attribute of an Enum member via MVC Razor code?
C#
asp.net Mvc
Razor
Displayattribute
Preprocessor directives in Razor
C#
asp.net Mvc
Razor
Preprocessor
What is the @Html.DisplayFor syntax for?
asp.net Mvc-3
Razor
How do I define a method in Razor?
C#
asp.net Mvc
asp.net Mvc-3
Razor
ASP.NET MVC 3 Razor: Include JavaScript file in the head tag
Javascript
asp.net Mvc
Include
Razor
asp.net Mvc-3
@media media query and ASP.NET MVC razor syntax clash
Css
asp.net Mvc-3
Razor
Media Queries
How to create a function in a cshtml template?
asp.net Mvc
asp.net Mvc-3
Razor
Razor View throwing "The name 'model' does not exist in the current context"
asp.net Mvc
asp.net Mvc-4
Razor
How to reference a .css file on a razor view?
Css
asp.net Mvc
Razor
Where and how is the _ViewStart.cshtml layout file linked?
.Net
asp.net Mvc
asp.net Mvc-3
Razor
MVC 4 @Scripts "does not exist"
asp.net Mvc
Razor
ASP.NET MVC 3 Razor - Adding class to EditorFor
asp.net Mvc
asp.net Mvc-3
Razor
How can I add a class attribute to an HTML element generated by MVC's HTML Helpers?
asp.net Mvc
Razor
Html Helper
Mix Razor and Javascript code
C#
Javascript
Razor
Add CSS or JavaScript files to layout head from views or partial views
asp.net Mvc
asp.net Mvc-3
Razor
How to add a second css class with a conditional value in razor MVC 4
Razor
asp.net Mvc-4
Html
Differences between Html.TextboxFor and Html.EditorFor in MVC and Razor
asp.net Mvc
asp.net Mvc-3
Razor
Razor View Engine : An expression tree may not contain a dynamic operation
asp.net Mvc
.Net 4.0
Razor
How can I pass parameters to a partial view in mvc 4
asp.net Mvc
asp.net Mvc-4
Razor
Partial Views
How to use ? : if statements with Razor and inline code blocks
asp.net
asp.net Mvc
asp.net Mvc-3
Syntax
Razor
How to write a comment in a Razor view?
C#
asp.net Mvc-3
Razor
Comments
Razor HtmlHelper Extensions (or other namespaces for views) Not Found
asp.net Mvc-3
Extension Methods
Razor
Html Helper
Using Razor, how do I render a Boolean to a JavaScript variable?
Javascript
asp.net Mvc
Razor
Dynamic Anonymous type in Razor causes RuntimeBinderException
Dynamic
asp.net Mvc-3
Razor
Anonymous Types
How do I write unencoded Json to my View using Razor?
asp.net Mvc
Json
Razor
Correct way to use _viewstart.cshtml and partial Razor views?
Razor
asp.net Mvc-3
MVC 3: How to render a view without its layout page when loaded via ajax?
C#
asp.net Mvc
asp.net Mvc-3
Master Pages
Razor
Why does Razor _layout.cshtml have a leading underscore in file name?
asp.net
asp.net Mvc-3
Razor
Disable Visual Studio code formatting in Razor
Visual Studio
Razor
Code Formatting
How to add extra namespaces to Razor pages instead of @using declaration?
asp.net Mvc-3
Razor
DropDownList in MVC 4 with Razor
C#
asp.net Mvc
Razor
Visual Studio 2015 Broken Razor Intellisense
C#
asp.net Mvc
Razor
Intellisense
Visual Studio-2015
MVC which submit button has been pressed
C#
asp.net
asp.net Mvc
Razor
How to write "Html.BeginForm" in Razor
Forms
asp.net Mvc-3
Razor
MVC3 Razor: Displaying html within code blocks
asp.net Mvc-3
Razor
Html helper for <input type="file" />
asp.net Mvc
Razor
File Upload
Upload
Html Helper
Get Current Area Name in View or Controller
C#
asp.net Mvc
Razor
ASP.Net MVC: How to display a byte array image from model
C#
asp.net Mvc
Razor
How to create a readonly textbox in ASP.NET MVC3 Razor
C#
asp.net Mvc-3
Razor
Html Helper
Readonly Attribute
Populating a razor dropdownlist from a List<object> in MVC
C#
asp.net Mvc-4
Razor
html.dropdownlistfor
How to specify data attributes in razor, e.g., data-externalid="23151" on @this.Html.CheckBoxFor(...)
C#
.Net
Razor
Razor comment syntax
asp.net Mvc-3
Razor
Comments
Pass parameter to controller from @Html.ActionLink MVC 4
Razor
asp.net Mvc-4
Using MVC HtmlHelper extensions from Razor declarative views
asp.net Mvc
asp.net Mvc-3
Razor
Visual Studio 2015 not syntax highlighting razor nor Intellisense
C#
asp.net
asp.net Mvc
Razor
Visual Studio-2015
Action Image MVC3 Razor
Image
asp.net Mvc-3
Action
Razor
The name 'model' does not exist in current context in MVC3
asp.net Mvc-3
Razor
ASP.NET Core 2.0 Razor vs Angular/React/etc
asp.net
Angular
Reactjs
Razor
how to add script src inside a View when using Layout
asp.net Mvc
Razor
What, why or when it is better to choose cshtml vs aspx?
asp.net
asp.net Mvc
Razor
Converting DateTime format using razor
asp.net Mvc-3
Razor
How do I output raw html when using RazorEngine (NOT from MVC)
C#
Razor
Html Encode
Razor MVC Populating Javascript array with Model Array
Javascript
Arrays
asp.net Mvc
asp.net Mvc-4
Razor
The name 'ViewBag' does not exist in the current context - Visual Studio 2015
C#
asp.net Mvc
Visual Studio
Razor
Web Config
Razor-based view doesn't see referenced assemblies
asp.net Mvc
asp.net Mvc-3
Razor
Using sections in Editor/Display templates
Html
asp.net Mvc
asp.net Mvc-3
Razor
ASP.NET MVC Razor pass model to layout
C#
.Net
asp.net Mvc
Razor
Populate a Razor Section From a Partial
Javascript
asp.net Mvc-3
Razor
Problem getting the AssemblyVersion into a web page using Razor /MVC3
C#
asp.net Mvc-3
Reflection
Assemblies
Razor
Html.DropdownListFor selected value not being set
asp.net Mvc
Razor
Razor ViewEngine: How do I escape the "@" symbol?
asp.net
asp.net Mvc-3
Razor
Escaping
Twitter Anywhere
ASP.NET MVC 3: Override "name" attribute with TextBoxFor
C#
asp.net Mvc-3
Razor
Html Helper
Checkbox for nullable boolean
asp.net Mvc-3
Razor
Nullable
MVC Razor dynamic model, 'object' does not contain definition for 'PropertyName'
asp.net Mvc-3
Razor
How can I check ModelState.IsValid from inside my Razor view
asp.net Mvc
asp.net Mvc-3
Razor
Razor doesn't understand unclosed html tags
asp.net Mvc-3
Razor
Conditional HTML Attributes using Razor MVC3
Html
asp.net Mvc-3
Razor
Html.RenderPartial giving me strange overload error?
asp.net Mvc
asp.net Mvc-3
Razor
Renderpartial
MVC4 style bundle giving 403
.Net
asp.net Mvc
Razor
asp.net Mvc-4
Bundling and-Minification
Is it possible to use Razor View Engine outside asp.net
asp.net
asp.net Mvc
Code Generation
Templating
Razor
ASP.NET MVC Razor Concatenation
asp.net Mvc
asp.net Mvc-3
Razor
asp.net Mvc-4
@Html.BeginForm Displaying "System.Web.Mvc.Html.MvcForm" on Page
asp.net Mvc-3
Razor
html.beginform
Calling @Html.Partial to display a partial view belonging to a different controller
C#
asp.net
asp.net Mvc
Razor
Concatenating strings in Razor
asp.net Mvc
asp.net Mvc-3
Razor
ASP MVC href to a controller/view
asp.net
asp.net Mvc
asp.net Mvc-4
Razor
Href
String interpolation in a Razor view?
C#
asp.net Mvc
Razor
C# 6.0
Razor If/Else conditional operator syntax
asp.net Mvc-3
Razor
How can I know if a non-required RenderSection exists?
C#
asp.net
asp.net Mvc
asp.net Mvc-3
Razor
ASP.NET MVC Razor: How to render a Razor Partial View's HTML inside the controller action
C#
asp.net Mvc
Razor
Html.Textbox VS Html.TextboxFor
asp.net Mvc
asp.net Mvc-3
Razor
Razor: @Html.Partial() vs @RenderPage()
asp.net Mvc
Razor
Renderpartial
Html.RenderPartial() syntax with Razor
asp.net Mvc
asp.net Mvc-3
Razor
How to get query string parameter from MVC Razor markup?
C#
asp.net
asp.net Mvc
Razor
asp.net Mvc-4
Return View as String in .NET Core
C#
asp.net
Razor
asp.net Core
.Net Core
Razor View Without Layout
asp.net Mvc
asp.net Mvc-3
Layout
Razor
MVC Razor view nested foreach's model
C#
asp.net
asp.net Mvc-3
View
Razor
ASP.NET MVC razor: conditional attribute in HTML
asp.net Mvc
asp.net Mvc-3
Razor
MVC Razor @foreach
asp.net Mvc
Razor
Force all Areas to use same Layout
asp.net Mvc
Razor
asp.net Mvc-Routing
asp.net Mvc-Areas
DisplayNameFor() From List<Object> in Model
C#
asp.net Mvc
Razor
Model
MVC 3 file upload and model binding
asp.net Mvc
asp.net Mvc-3
Razor
asp.net-mvc: razor '@' symbol in js file
C#
Javascript
asp.net Mvc
asp.net Mvc-3
Razor
In MVC3 Razor, how do I get the html of a rendered view inside an action?
asp.net Mvc
asp.net Mvc-3
Razor
Is it possible to create a generic @helper method with Razor?
asp.net Mvc
Generics
asp.net Mvc-3
Razor
What's the difference between Html.Label, Html.LabelFor and Html.LabelForModel
asp.net Mvc
Razor
Does Razor syntax provide a compelling advantage in UI markup?
asp.net Mvc
Syntax
Markup
Razor
asp.net Mvc-3
Where can I find System.Web.Helpers, System.Web.WebPages, and System.Web.Razor?
C#
Visual Studio-2010
Razor
Razorgenerator
Using Razor outside of MVC in .NET Core
C#
.Net
Razor
.Net Core
Html.LabelFor Specified Text
C#
asp.net Mvc
Razor
Razor view engine - How can I add Partial Views
C#
asp.net Mvc
Razor
How can I name a form with Html.BeginForm()?
asp.net Mvc
Razor
MVC3 Razor DropDownListFor Enums
C#
asp.net Mvc-3
Razor
Set disable attribute based on a condition for Html.TextBoxFor
asp.net Mvc
asp.net Mvc-3
Razor
Html Helper
Cannot perform runtime binding on a null reference, But it is NOT a null reference
C#
asp.net
asp.net Mvc
Razor
Emitting unencoded strings in a Razor view
asp.net
Razor
Html Encode
InvalidCastException is thrown after installing ASP.NET MVC 4 Beta
asp.net
asp.net Mvc
Razor
asp.net Mvc-4
asp.net Webpages
How to add Date Picker Bootstrap 3 on MVC 5 project using the Razor engine?
asp.net Mvc
Twitter Bootstrap
Razor
Why do I get null instead of empty string when receiving POST request in from Razor View?
asp.net Mvc
String
Razor
Null
Viewmodel
Display encoded html with razor
asp.net Mvc-3
Razor
Html Encode
There's no @Html.Button !
.Net
asp.net Mvc-3
Razor
Html Helper
Htmlbutton
ASP.NET MVC 3 Razor recursive function
C#
asp.net Mvc
asp.net Mvc-3
Razor
The name 'Scripts' does not exists in the current context in MVC
C#
asp.net Mvc
Razor
Razor Nested Layouts with Cascading Sections
asp.net Mvc-3
Razor
Viewengine
IntelliSense in Razor files (.cshtml) stopped working
Razor
asp.net Mvc-5
How to access javascript variable within @URL.Action()
Javascript
asp.net Mvc
asp.net Mvc-3
Razor
ASP.NET MVC get textbox input value
C#
Html
asp.net Mvc
asp.net Mvc-4
Razor
Blazor vs Razor
C#
Razor
asp.net Core
Blazor
Adding a css class to select using @Html.DropDownList()
asp.net Mvc
Razor
How to have a a razor action link open in a new tab?
C#
Html
Razor
Using partial views in ASP.net MVC 4
C#
asp.net Mvc
Razor
asp.net Mvc-4
Partial Views
Razor/CSHTML - Any Benefit over what we have?
C#
asp.net Mvc
Razor
Perform client side validation for custom attribute
Jquery
asp.net Mvc
Validation
asp.net Mvc-3
Razor
Why doesn't Visual Studio code formatting work properly for Razor markup?
asp.net Mvc
Visual Studio
Visual Studio-2010
asp.net Mvc-3
Razor
Getting index value on razor foreach
asp.net Mvc
asp.net Mvc-2
Razor
Partial Views
Implementing a switch statement in a CSHTML page
asp.net Mvc
asp.net Mvc-3
Razor
Post an HTML Table to ADO.NET DataTable
C#
asp.net Mvc
Razor
asp.net Mvc-5
How to use generic syntax inside a Razor view file?
asp.net Mvc
asp.net Mvc-3
Razor
Check for razor errors during build
C#
Visual Studio
Razor
How can I load Partial view inside the view?
asp.net Mvc
asp.net Mvc-3
Razor
asp.net Mvc-Partialview
The view must derive from WebViewPage, or WebViewPage<TModel>
asp.net Mvc-3
Razor
Embedded Resource
Plugin Architecture
Is it OK to put JavaScript in Partial Views
Javascript
asp.net Mvc
Razor
Partial Views
How do I specify the columns and rows of a multiline Editor-For in ASP.MVC?
asp.net Mvc
Razor
Data Annotations
How do I render HTML from the Viewbag using MVC3 Razor
Html
asp.net Mvc
asp.net Mvc-3
Razor
Viewbag
Razor Views not seeing System.Web.Mvc.HtmlHelper
C#
Razor
asp.net Mvc-4
Can't access to HttpContext.Current
C#
asp.net
asp.net Mvc
asp.net Mvc-4
Razor
c# razor url parameter from view
asp.net Mvc
Url
Razor
Regions In ASP.NET Views?
asp.net Mvc
asp.net Mvc-3
Views
Razor
Region
MVC razor form with multiple different submit buttons?
C#
asp.net Mvc
asp.net Mvc-4
Razor
Calling ASP.NET MVC Action Methods from JavaScript
Javascript
asp.net Mvc
asp.net Mvc-3
Razor
ASP.Net MVC – Resource Cannot be found error
asp.net
asp.net Mvc
asp.net Mvc-3
Razor
Possible to access MVC ViewBag object from Javascript file?
C#
Jquery
asp.net Mvc
asp.net Mvc-3
Razor
How to display an image from a path in asp.net MVC 4 and Razor view?
asp.net Mvc
Image
Razor
Razor syntax inside attributes of html elements (ASP MVC 3)
asp.net Mvc
Razor
asp.net Mvc-3
Render partial view with dynamic model in Razor view engine and ASP.NET MVC 3
asp.net Mvc
Razor
asp.net Mvc-3
razor syntax - foreach loop
Razor
How can I specify CSS @media within a razor file?
asp.net Mvc
asp.net Mvc-3
Razor
Render Partial View from other controller
C#
asp.net Mvc
asp.net Mvc-3
Razor
Partial Views
Determine if uploaded file is image (any format) on MVC
C#
.Net
asp.net Mvc
Razor
File Upload
Templating using new RazorEngine API
C#
Razor
ASP.NET MVC 3 Razor performance
C#
asp.net Mvc
Performance
asp.net Mvc-3
Razor
How do I use a common _ViewStart in areas?
asp.net Mvc
vb.net
Razor
MVC Razor Radio Button
C#
.Net
asp.net Mvc
asp.net Mvc-3
Razor
White space at top of page
Html
Css
asp.net Mvc-4
Razor
asp.net MVC3 razor: display actionlink based on user role
C#
asp.net Mvc-3
Razor
Could not load file or assembly 'System.Web.WebPages.Razor, Version=2.0.0.0
asp.net Mvc-3
Razor
Dependencies
asp.net 4.0
Attempt by 'System.Web.Mvc.PreApplicationStartCode.Start()' to critical method 'System.Web.WebPages.Razor.PreApplicationStartCode.Start()' failed
asp.net Mvc-4
Razor
Dependencies
ASP.NET Actionlink with glyphicon and text with different font
asp.net Mvc
Twitter Bootstrap
Razor
Glyphicons
Getting controller name from razor
C#
asp.net Mvc
Razor
asp.net Mvc-5
ASP.NET MVC: Custom Html Helpers in Razor
asp.net Mvc
asp.net Mvc-3
Razor
How can I use a reportviewer control in an asp.net mvc 3 razor view?
asp.net Mvc-3
Razor
Reportviewer
MVC4: Two radio buttons for a single boolean model property
asp.net Mvc
Razor
asp.net Mvc-4
Radiobuttonfor
Replacement for @helper in ASP.NET Core
Razor
asp.net Core
asp.net Core-Mvc
How to check if ViewBag property is null or not exists
C#
Jquery
asp.net Mvc
asp.net Mvc-3
Razor
Custom validation attribute that compares the value of my property with another property's value in my model class
C#
asp.net Mvc
Razor
Validationattribute
Razor/JavaScript and trailing semicolon
Javascript
asp.net Mvc
Razor
How to render HTML string in ASP.NET MVC?
asp.net
asp.net Mvc-3
Razor
@Html.Action in Asp.Net Core
C#
asp.net Mvc
asp.net Core
Razor
How to pass a value to razor variable from javascript variable?
Javascript
C#
Razor
Shorthand if else with razor
C#
asp.net Mvc
Razor
Javascript, Razor and Escape characters. Like apostrophe
Javascript
Jquery
Jquery Plugins
asp.net Mvc-3
Razor
dropdownlist set selected value in MVC3 Razor
asp.net Mvc-3
Drop Down-Menu
Razor
Selected
MVC SelectList combining multiple columns in text field
asp.net
asp.net Mvc
asp.net Mvc-3
Razor
Current Year in ASP.NET MVC 3
.Net
asp.net Mvc-3
Razor
Using site root relative links in Razor
C#
asp.net
Razor
ContentPlaceHolder in Razor?
asp.net Mvc
Razor
In ASP.NET MVC: All possible ways to call Controller Action Method from a Razor View
Javascript
Jquery
Ajax
asp.net Mvc
Razor
How can I check if my model is valid from inside the razor view?
asp.net Mvc
asp.net Mvc-3
Razor
Razor Syntax and Javascript
Javascript
Razor
asp.net Mvc-3
Razor actionlink autogenerating ?length=7 in URL?
asp.net Mvc
asp.net Mvc-3
asp.net Mvc-4
Razor
asp.net Mvc-5
Razor: No overload for method 'Write' takes 0 arguments
C#
Razor
Access global page variable in helper
asp.net Mvc-3
Razor
Set required attribute on Html.Textbox
Html
asp.net Mvc-3
Razor
@Html.DropDownListFor how to set default value
C#
asp.net Mvc
Razor
Dropdownbox
Encountered an unexpected error when attempting to resolve tag helper directive '@addTagHelper'
C#
asp.net Mvc
Razor
asp.net Mvc-5
Visual Studio-2015
ASP.NET MVC 3 Razor documentation
asp.net Mvc
Razor
ASP.NET MVC Razor designer
asp.net Mvc
Razor
Better way to get active page link in MVC 3 Razor
C#
asp.net Mvc-3
Razor
How to make Html.DisplayFor display line breaks?
asp.net Mvc-3
Razor
What's the current best solution for generating HTML from ASP.NET Razor templates within a Console Application?
C#
asp.net
asp.net Mvc
Razor
Servicestack
Razor 2 to Razor 3 MVC 5
C#
asp.net Mvc
asp.net Mvc-4
Razor
asp.net Mvc-5
How to check if user is authenticated in Razor pages of .Net Core 2.0
asp.net Mvc
Authentication
Razor
asp.net Core
How to read appsettings.json in my _layout.chtml
Razor
Model View-Controller
Configuration
Appsettings
Razor views as email templates
Templates
asp.net Mvc-3
Razor
ASP.Net MVC3 Html.PasswordFor does not populate
asp.net Mvc-3
Razor
Using a generic model in ASP.NET MVC Razor
Generics
asp.net Mvc-3
Razor
ASP.NET MVC: Html.EditorFor and multi-line text boxes
asp.net Mvc-3
Razor
I want to understand the lambda expression in @Html.DisplayFor(modelItem => item.FirstName)
C#
asp.net Mvc
Razor
Lambda
Html Helper
razor views are not giving compile time error
asp.net Mvc
asp.net Mvc-4
Razor
Visual Studio-2012
How to pass IEnumerable list to controller in MVC including checkbox state?
C#
asp.net Mvc
asp.net Mvc-4
Razor
Model Binding
"ASP.global_asax does not exist in the namespace ASP"
C#
asp.net
asp.net Mvc
Razor
how to access querystring in ASP.Net MVC View?
asp.net Mvc
Razor
How to tell razor NOT to html escape
Javascript
asp.net Mvc-3
Razor
How to compile cshtml before runtime
asp.net Mvc
Jquery Mobile
Razor
How to add "required" attribute to mvc razor viewmodel text input editor
asp.net Mvc
Razor
Data Annotations
Html Helper
Object reference not set to an instance of an object in _Layout.cshtml after updated packages
C#
asp.net Mvc
Razor
asp.net Mvc-5
Owin
The new null-conditional operator in ASP.NET MVC Razor
C#
asp.net Mvc
Razor
C# 6.0
Adding sub-directory to "View/Shared" folder in ASP.Net MVC and calling the view
asp.net
asp.net Mvc
asp.net Mvc-2
asp.net Mvc-3
Razor
ASP.NET MVC `Html.ActionLink` between "Areas"
asp.net Mvc
Razor
asp.net Mvc-Areas
ModelState.AddModelError is not being displayed inside my view
asp.net Mvc-3
Razor
How to hide a div element depending on Model value? MVC
Jquery
Html
asp.net Mvc
Razor
ASP.NET MVC DropDownListFor with model of type List<string>
C#
asp.net Mvc
asp.net Mvc-3
Razor
Html Helper
Checkbox disabled attribute in ASP.NET MVC
C#
asp.net Mvc
Razor