Use @Html.Raw(Model.MyData.Address.Replace("\r\n", "<br />"))
Related Contents:
- ASP.NET MVC get textbox input value
- How do you handle multiple submit buttons in ASP.NET MVC Framework?
- How to declare a local variable in Razor?
- How to get current page URL in MVC 3
- Styles.Render in MVC4
- How to get the Display Name Attribute of an Enum member via MVC Razor code?
- Preprocessor directives in Razor
- How do I define a method in Razor?
- MVC 3: How to render a view without its layout page when loaded via ajax?
- Return HTML from ASP.NET Web API
- DropDownList in MVC 4 with Razor
- Visual Studio 2015 Broken Razor Intellisense
- Get Current Area Name in View or Controller
- ASP.Net MVC: How to display a byte array image from model
- Visual Studio 2015 not syntax highlighting razor nor Intellisense
- The name ‘ViewBag’ does not exist in the current context – Visual Studio 2015
- String interpolation in a Razor view?
- How to get query string parameter from MVC Razor markup?
- Calling @Html.Partial to display a partial view belonging to a different controller [duplicate]
- How can I know if a non-required RenderSection exists?
- DisplayNameFor() From List in Model
- asp.net-mvc: razor ‘@’ symbol in js file
- Cannot perform runtime binding on a null reference, But it is NOT a null reference
- ASP.NET MVC 3 Razor recursive function
- The name ‘Scripts’ does not exists in the current context in MVC
- Post an HTML Table to ADO.NET DataTable
- How to have a a razor action link open in a new tab?
- Using partial views in ASP.net MVC 4
- Razor/CSHTML – Any Benefit over what we have? [closed]
- Can’t access to HttpContext.Current [duplicate]
- MVC razor form with multiple different submit buttons?
- Possible to access MVC ViewBag object from Javascript file?
- Determine if uploaded file is image (any format) on MVC
- Getting controller name from razor
- MVC Razor Radio Button
- Object reference not set to an instance of an object in _Layout.cshtml after updated packages
- Render Partial View from other controller
- How to check if ViewBag property is null or not exists
- ASP.NET MVC 3 Razor performance
- Shorthand if else with razor
- Custom validation attribute that compares the value of my property with another property’s value in my model class
- Encountered an unexpected error when attempting to resolve tag helper directive ‘@addTagHelper’
- Razor 2 to Razor 3 MVC 5
- The new null-conditional operator in ASP.NET MVC Razor
- How to pass IEnumerable list to controller in MVC including checkbox state?
- I want to understand the lambda expression in @Html.DisplayFor(modelItem => item.FirstName)
- Should I inline all CSS files programmatically to optimize page load speed?
- “ASP.global_asax does not exist in the namespace ASP”
- onchange event for html.dropdownlist
- (PartialView) The model item passed into the dictionary is of type ‘Customer’, but this dictionary requires a model item of type ‘UserProfile’