Click or drag to resize

ExtensionsToHTMLDisplay Method (Object, String, DataGridDataTypes, String, String, String, String, TempDataDictionary)

Gives HTML code for display.

Namespace:  SOWIWeb.Helper
Assembly:  SOWIWeb.Helper (in SOWIWeb.Helper.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
public static string ToHTMLDisplay(
	this Object pData,
	string pName,
	DataGridDataTypes pDataType,
	string pStyle = "",
	string pHref = "",
	string pTitle = "",
	string pListName = "",
	TempDataDictionary pTempData = null
)

Parameters

pData
Type: SystemObject
Data for displayed
pName
Type: SystemString
Value for HTML property ID
pDataType
Type: SOWIData.ManagementDataGridDataTypes
Data type use SOWIData.Managment.DataGridDataTypes
pStyle (Optional)
Type: SystemString
CSS property and value e.g. background-color:blue;
pHref (Optional)
Type: SystemString
Link destination e.g. http://wwww.sowi.ch
Note Note
Not use by Data Type Email and URL
pTitle (Optional)
Type: SystemString
Tool tip text
pListName (Optional)
Type: SystemString
List name from pTempData
pTempData (Optional)
Type: TempDataDictionary
Data type (pDataType) List supported type of List based of IDataStandard

Return Value

Type: String
HTML code

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Object. 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
Value must be a type of object (see example).
Examples
@{
   object lValue = item.Active;
}
@Html.Raw(lValue.ToHTMLDisplay("Active", SOWIData.Management.DataGridDataTypes.Boolean))
See Also