nbsp in html corresponds to “\xA0” as a C# string, so use this instead of spaces, when HTML encoded it will produce nbsp
More Related Contents:
- How to render a Razor View to a string in ASP.NET MVC 3?
- Razor: Declarative HTML helpers
- ASP.NET MVC DropDownListFor with model of type List
- asp.net-mvc: razor ‘@’ symbol in js file
- How do I define a method in Razor?
- Possible to access MVC ViewBag object from Javascript file?
- How to declare a local variable in Razor?
- MVC 3: How to render a view without its layout page when loaded via ajax?
- razor view with anonymous type model class. It is possible?
- How to edit multiple models in a single Razor View
- Uploading image in ASP.NET MVC
- How to use multiple form elements in ASP.NET MVC
- Returning a file to View/Download in ASP.NET MVC
- Prevent Caching in ASP.NET MVC for specific actions using an attribute
- Custom validation attribute that compares the value of my property with another property’s value in my model class
- Why Interface Layer/Abstract classes required in our project? [closed]
- Adding your own HtmlHelper in ASP.NET MVC 3
- When should I use Html.Displayfor in MVC
- Converting ASP.NET MVC Razor @helper function into a method of a helper class
- Visual Studio 2015 Broken Razor Intellisense
- How to elegantly deal with timezones
- Complex models and partial views – model binding issue in ASP.NET MVC 3
- ASP.NET MVC Razor render without encoding
- ‘object’ does not contain a definition for ‘X’
- Client Id for Property (ASP.Net MVC)
- How to get current page URL in MVC 3
- Html.EnumDropdownListFor: Showing a default text
- validate a dropdownlist in asp.net mvc
- Redirect to another page when user is not authorized in asp.net mvc3
- Razor/CSHTML – Any Benefit over what we have? [closed]