if(dateofbirth.Year.ToString()!=1900)
SendSMS(txt_DOB.Text.Trim());
else
if(Weddingday.Year.ToString()!=1900)
SendSMS(txt_wedding.Text.Trim());
form the above when i run i show the error message as follows;
Operator '!=' cannot be applied to operands of type 'string' and 'int' .
please correct my code and send.
Error 1 Operator '!=' cannot be applied to operands of type
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

VulpesRank #55 · 29.2K reputationPosted Dec 30, 2012, 1:14 PM EST