HtmlHelper.GenerateIdFromName Method (String, String)
Creates an HTML element ID using the specified element name and a string that replaces dots in the name.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
static member GenerateIdFromName : name:string * idAttributeDotReplacement:string -> string
Parameters
- name
- Type: System.String
The name of the HTML element.
- idAttributeDotReplacement
- Type: System.String
The string that replaces dots (.) in the name parameter.
| Exception | Condition |
|---|---|
| ArgumentNullException | The name parameter or the idAttributeDotReplacement parameter is a null reference (Nothing in Visual Basic). |
Show: