Logo 
Search:

Asp.net Answers

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds
  Question Asked By: Sunil Garg   on Feb 09 In Asp.net Category.

  
Question Answered By: Sheryl Morgan   on Feb 09

You can do a test for DBNull.Value first:
E.g.


If objDataReader("adminTitle") Is DBNull.Value Then
dbEditorTitle = "--"
Else
dbEditorTitle = objDataReader("adminTitle")
End If

Share: 

 

This Question has 1 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Cast from type 'DBNull' to type 'String' is not valid Or get search suggestion and latest updates.


Tagged: