HtmlHelper.GenerateIdFromName Metodo

Definizione

Overload

GenerateIdFromName(String)

Crea un ID dell'elemento HTML usando il nome dell'elemento specificato.

GenerateIdFromName(String, String)

Crea un ID dell'elemento HTML usando il nome dell'elemento specificato e una stringa che sostituisce i punti nel nome.

GenerateIdFromName(String)

Crea un ID dell'elemento HTML usando il nome dell'elemento specificato.

public static string GenerateIdFromName (string name);
static member GenerateIdFromName : string -> string
Public Shared Function GenerateIdFromName (name As String) As String

Parametri

name
String

Nome dell'elemento HTML.

Restituisce

ID dell'elemento HTML.

Eccezioni

Il parametro name è null.

Si applica a

GenerateIdFromName(String, String)

Crea un ID dell'elemento HTML usando il nome dell'elemento specificato e una stringa che sostituisce i punti nel nome.

public static string GenerateIdFromName (string name, string idAttributeDotReplacement);
static member GenerateIdFromName : string * string -> string
Public Shared Function GenerateIdFromName (name As String, idAttributeDotReplacement As String) As String

Parametri

name
String

Nome dell'elemento HTML.

idAttributeDotReplacement
String

Stringa che sostituisce i punti (.) nel nome del parametro.

Restituisce

ID dell'elemento HTML.

Eccezioni

Il parametro name o il parametro idAttributeDotReplacement è null.

Si applica a