IHi could someone help me with this bit of code please, I want is to if the dropdown list value is 0 the textbox is populated with the number 0.
Similarly if the drop down list value = 1, the text box is populated with the number 1
private void PopulateSingleNumbers()
if (ddlNoAnswers.SelectedValue == 0)
tbText = "0";
if (ddlNoAnswers.SelectedValue == 1)
tbText = "1";
Operator '==' cannot be applied to operands of type 'string' and 'int'