Tuesday, November 29, 2022

How to pass DBNULL value to datetime column in database ASP.NET C#

   new SqlParameter("MedicalCertificateDate",txtDOIMC.Text == String.Empty?Convert.DBNull:txtDOIMC.Text),



reference:- https://stackoverflow.com/questions/18963178/sending-null-parameters-to-sql-server

No comments:

Post a Comment