You must Sign In to post a response.
  • Category: ASP.NET

    How to set date column null in Hosting Server in

    I set database date column to allowed null. I am passing DBNull.Value the null value into database using Store Procedure and its works on localhost.

    but when i hosted my website on server it gives me an error
    (String was not recognized as a valid DateTime.)
  • #769731
    For deep knowledge, you can visit at-

  • #769736
    i think it should work same in all environment s but not sure of exception coming on hosted machine. it is always advisable to keep the date parameter in stored proc as optional by assigning NULL.
    B.Ramana Reddy

  • Sign In to post your comments