I'm using CompareValidator to check if the value selected in the dropdownlist is "Select", but not working, follow the code.
<asp:DropDownList ID="ddlIdPisSt" runat="server" DataSourceID="sdsIdPisSt" DataTextField="Descricao"
DataValueField="Id" AppendDataBoundItems="True" Width="790px">
<asp:ListItem Value="">Selecione</asp:ListItem>
</asp:DropDownList>
<asp:CompareValidator ID="CompareValidator1" runat="server" ControlToValidate="ddlIdPisSt" Display="Dynamic"
ErrorMessage=" * " Operator="NotEqual" ValueToCompare="" ForeColor = "Red">
</asp:CompareValidator>
What I'm doing wrong. Can someone help me.