Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
6
Answers
asp.net mvc design pattren "Error:Operator '>' cannot be applied to operands of type 'string' "
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
KRayudu V
12y
3k
1
Reply
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; }
}
}
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
row command in grid view cod
Report not showing