C# Class ServiceLayer.UiClasses.DropDownListType

Mostrar archivo Open project: JonPSmith/SampleMvcWebApp Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
SetSelectedValue ( string valueAsString ) : void
SetupDropDownListContent ( string>.IEnumerable keyValueList, string promptString ) : void

This sets up the KeyValueList to the given list This must be done before handed to MVC for display (or redisplay on error)

ToString ( ) : string

Method Details

SetSelectedValue() public method

public SetSelectedValue ( string valueAsString ) : void
valueAsString string
return void

SetupDropDownListContent() public method

This sets up the KeyValueList to the given list This must be done before handed to MVC for display (or redisplay on error)
public SetupDropDownListContent ( string>.IEnumerable keyValueList, string promptString ) : void
keyValueList string>.IEnumerable
promptString string If supplied then puts up string and the user must select something. Otherwise first item selected
return void

ToString() public method

public ToString ( ) : string
return string