TagBuilder.GenerateId Method

Visual Studio 2010

Generates the id attribute for the tag by using the specified name.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public void GenerateId(
	string name
)

Parameters

name
Type: System.String
The name to use to generate the id value.

This method replaces periods in the id with the character that is designated by the IdAttributeDotReplacement property. By default, periods are replaced with underscores (_).

Community Additions

ADD
Show: