I am trying to get short variables value from my database and need to cast it but it gives an casting error at debugging how can I solve this problem ?Can you help me?
obj_OBJimagegallery.watermark =String.IsNullOrEmpty((dr["watermark"]).ToString()) ? null : (short?)(dr["watermark"]);