I have this declared RadioList:
<label>Aprovar</label>
<asp:RadioButtonList ID="rblAprovar" runat="server" RepeatLayout="Flow" RepeatDirection="Horizontal">
<asp:ListItem Text=" Sim " Value="1" />
<asp:ListItem Text=" Não " Value="0" />
</asp:RadioButtonList>
And I have this command in my behind:
if(rblAprovar.SelectedIndex = -1)
{
vstrMensagem += "- Aprovar não informado.<br>";
}
This is giving this error:
Can not implicitly convert 'int' to 'bool'
I have other Radiobuttonlist with the same if that does not give this error and that they are being programmed the same way. The question is: What could be wrong with this statement? In my opinion nothing.