Author: Nashua | Posted on: 9/1/2008 6:18:16 PM | Views : 351

Can anyone help me solve this error?  I think I am getting this because there is a NULL value in the database for the field.  Here is my code:

While objRdr.Read()

txtPhone2.Text=objRdr("SecondaryPhone")

 I also tried:

While objRdr.Read()

txtPhone2.Text=CStr(objRdr("SecondaryPhone"))

I am not using a repeater or datalist because I am only pulling a single record for the purpose of editing it.

I am still relatively new, and woulld appreciate as much detail as you can provide.  I am using SQL Server and VB.net.
...

Go to the complete details ...