Textbox

Initially blank: @textboxInitiallyBlankValue

Initially populated: @textboxInitiallyPopulatedValue

Checkbox

Initially unchecked: @checkboxInitiallyUncheckedValue

Initially checked: @checkboxInitiallyCheckedValue

Select

@selectValue

@functions { string textboxInitiallyBlankValue = null; string textboxInitiallyPopulatedValue = "Hello"; bool checkboxInitiallyUncheckedValue = false; bool checkboxInitiallyCheckedValue = true; bool includeFourthOption = false; enum SelectableValue { First, Second, Third, Fourth } SelectableValue selectValue = SelectableValue.Second; void AddAndSelectNewSelectOption() { includeFourthOption = true; selectValue = SelectableValue.Fourth; } }