从数据库获取空值 [英] Get Null value from DB
本文介绍了从数据库获取空值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的应用程序中有一个日期字段,其中用于显示日期的工具是LABEL.
我已经在下面的代码中显示了日期.
I have a date field in my application in which tool used to display it is LABEL.
I have given below code to display the date.
lblInvestDate.Text = implementCorrectiveAction.InvestigationDate.ToString();
但是,当DB中日期字段值为null时使用此选项,则不会显示空白.
当DB值为null时,我需要在日期字段中显示空白标签.
请帮助我解决此问题.
But using this when date field value is null in DB, it does not shows blank.
I need to display blank label for date field, when DB value is null.
Please help me to solve this.
推荐答案
检查 ^ ]类.
这篇关于从数据库获取空值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文