This topic has not yet been rated - Rate this topic

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)
public static string GenerateIdFromName(
	string name
)

Parameters

name
Type: System.String

The name of the HTML element.

Return Value

Type: System.String
The ID of the HTML element.
ExceptionCondition
ArgumentNullException

The name parameter is null.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.