Jitendra Tiwari

Jitendra Tiwari

  • NA
  • 72
  • 52.7k

Problem in null conversion?

Mar 17 2010 3:39 AM
Hello Friends,
I m new in C# programming.
when i access data from a file.
i don't know each field has data or not.
but in my c# coding file wirte code

double value=Convert.ToDouble(dataRow["fieldValue"]);

if fieldValue is null or empty this code show exception.

Please suggest.
Thanks.

Answers (5)