All about Programming and Sourcecode

How to render without encoding in ASP.NET MVC Razor View ?

Are you looking to render a string in ASP.NET Razor View without encoding ? If yes , you could use the Html.Raw helper methods to achieve this.

How to render without encoding in ASP.NET MVC Razor View ?

Below is a sample code snippet to demonstrate the usage of Html.Raw in ASP.NET MVC.

@Html.Raw("Welcome to AbundantCode.com")
0saves
If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.
 
Comments

Trackbacks for this post

Leave a Reply