A
asif
i am new with c sharp....
can u please tell me what is wrong here....
try
{
//message = _serialPort.ReadLine();
if (_serialPort.ReadLine()== "asif")
{
_serialPort.WriteLine("asif is there:");
}
else
{
_serialPort.WriteLine("someone is there:");
}
}
catch (TimeoutException) { }
}
it always go to the else part....
i will be thank ful...
can u please tell me what is wrong here....
try
{
//message = _serialPort.ReadLine();
if (_serialPort.ReadLine()== "asif")
{
_serialPort.WriteLine("asif is there:");
}
else
{
_serialPort.WriteLine("someone is there:");
}
}
catch (TimeoutException) { }
}
it always go to the else part....
i will be thank ful...