I had DDL and when I selected on it this error apear (operator < cannot be aplied with operand String or int )
if (DDlCity.SelectedValue < 0)
{
using (SqlConnection con = Connection.GetConnection())
{
SqlCommand Com = new SqlCommand("GetDealers", con);
Com.CommandType = CommandType.StoredProcedure;
SqlDataAdapter DA = new SqlDataAdapter(Com);
DA.Fill(DT);
GridView1.DataSource = DT;
GridView1.DataBind();
}
if (DDlCity.SelectedIndex<0)