HtmlHelper.GenerateIdFromName Method (String, String)
Visual Studio 2010
Creates an HTML element ID using the specified element name and a string that replaces dots in the name.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Shared Function GenerateIdFromName ( _ name As String, _ idAttributeDotReplacement As String _ ) As 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 Nothing. |
Community Additions
ADD
Show: