asp.net mvc design pattren "Error:Operator '>' cannot be applied to operands of type 'string' "
Aspx.cs
FieldsLogin fls = new FieldsLogin();
fls.EmailId =txtemail.Text;
fls.Password = txtpwd.Text;
if (fls.EmailId> 0) // Error':input string not in the correct formate
{
Response.Write("Sucess");
}
else
{
Response.Write("Error");
}
Model(Loginfields):
public class FieldsLogin
{
public string EmployeeName { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
public string ConfirmPassword { get; set; }
public string EmailId { get; set; }
public string PhoneNo { get; set; }
public string Address { get; set; }
}
}