.NET Framework Class Library
HtmlHelper.GenerateIdFromName Method (String)
Creates an HTML element ID using the specified element name.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic
Public Shared Function GenerateIdFromName ( _ name As String _ ) As String
C#
public static string GenerateIdFromName( string name )
Visual C++
public: static String^ GenerateIdFromName( String^ name )
Parameters
- name
- Type: System.String
The name of the HTML element.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException |
The name parameter is null. |
See Also