HtmlHelper.Encode Method (Object)
Visual Studio 2010
Converts the value of the specified object to an HTML-encoded string.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Parameters
- value
- Type: System.Object
The object to encode.
If characters such as spaces and punctuation are passed in an HTTP stream, they can be misinterpreted when they are processed. URL encoding converts characters that are not allowed in a URL into character-entity equivalents. For example, when the characters < and > are embedded in a block of text to be transmitted in a URL, they are encoded as %3c and %3e.
Community Additions
ADD
Show: