This topic has not yet been rated - Rate this topic

HtmlHelper.IdAttributeDotReplacement Property

Gets or sets the character that replaces periods in the ID attribute of an element.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public static string IdAttributeDotReplacement { get; set; }

Property Value

Type: System.String
The character that replaces periods in the ID attribute of an element.

The default replacement character is an underscore (_).

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ