From a02ac60c8c703c1d0a7a4b1799f52f86761ee1c6 Mon Sep 17 00:00:00 2001
From: Steve Sanderson
Date: Fri, 16 Mar 2018 09:37:47 +0000
Subject: [PATCH] Fix selection on
+Select
+
+
+ First choice
+ Second choice
+ Third choice
+ @if (includeFourthOption)
+ {
+ Fourth choice
+ }
+
+ @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;
+ }
}