| Author: Balasubramaniyam 04 May 2008 | Member Level: Gold Points : 2 |
Use Convert.ToString(objDR("YearBorn"))
//Note if the value of the field null, null value converted in to empty string.
You will not get any error
|
| Author: Nithya 05 May 2008 | Member Level: Bronze Points : 2 |
foreach (DataRow dtRow in dsTable.Tables[0].Rows )
Response.Write(dtRow[0]== DBNull.Value?"Null Value" : dtRow[0].ToString() );
|