HtmlHelper.GenerateIdFromName Method (String)
Creates an HTML element ID using the specified element name.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
'Declaration Public Shared Function GenerateIdFromName ( _ name As String _ ) As String 'Usage Dim name As String Dim returnValue As String returnValue = HtmlHelper.GenerateIdFromName(name)
Parameters
- name
- Type: System.String
The name of the HTML element.
| Exception | Condition |
|---|---|
| ArgumentNullException | The name parameter is Nothing. |
Show: