System.InvalidCastException: Object cannot be cast from DBNull to other types.:-
This Exception is because While we are Performing some operations like addition, substraction..etc in the database of a Certain Field by using C# coding. Then This Exception May take place..So To Overcome This...the Database Field Should Not Be Null and should Be Initialized with Some Value or ZERO To Perform The Operations.
By Initializing The Database Field Values To Zero In The Database..The Form Runs Successfully.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.