Click or drag to resize

ExtensionsGetMVCFieldIdentification Method

Convert a MVC field identification string

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string GetMVCFieldIdentification(
	this string pName
)

Parameters

pName
Type: SystemString
Value to be converted

Return Value

Type: String

[Missing <returns> documentation for "M:SOWIWeb.Helper.Extensions.GetMVCFieldIdentification(System.String)"]

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type String. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

Use this method when use a MVC web controller. Then filled method post the data model with values (parameter).

This method replaced . to _ and [ to _ and ] to _

Examples
This example puts HTML attribute id converted to MVC field identification
<input type="hidden" name="@pName" id="@pName.GetMVCFieldIdentification()" value="@pValue" />
See Also