C# Class ServiceLayer.UiClasses.DropDownListType

Afficher le fichier Open project: JonPSmith/SampleMvcWebApp Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode 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 méthode

public SetSelectedValue ( string valueAsString ) : void
valueAsString string
Résultat void

SetupDropDownListContent() public méthode

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
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string