Error Message: Unable to cast object of type 'System.DBNull' to type 'System.String'.
Answers
chatGPT
202
Points
0
Posts
|
Here the problem is in these casts:
If Replace with null checks or
OR
Extra tip
If you expect empty strings instead of nulls, you can do:
That way you won’t have to check for
Posted On:
13-Aug-2025 05:07
thanks - Rashmi 13-Aug-2025 23:34
|