惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
NISL@THU
NISL@THU
T
Threatpost
T
The Exploit Database - CXSecurity.com
T
Threat Research - Cisco Blogs
S
Securelist
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
人人都是产品经理
人人都是产品经理
B
Blog RSS Feed
S
Secure Thoughts
MyScale Blog
MyScale Blog
O
OpenAI News
P
Palo Alto Networks Blog
美团技术团队
C
Cyber Attacks, Cyber Crime and Cyber Security
TaoSecurity Blog
TaoSecurity Blog
量子位
L
Lohrmann on Cybersecurity
G
GRAHAM CLULEY
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
T
Tailwind CSS Blog
Know Your Adversary
Know Your Adversary
Recent Commits to openclaw:main
Recent Commits to openclaw:main
Simon Willison's Weblog
Simon Willison's Weblog
宝玉的分享
宝玉的分享
PCI Perspectives
PCI Perspectives
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
I
InfoQ
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
S
Security @ Cisco Blogs
S
Schneier on Security
B
Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
The Cloudflare Blog
AWS News Blog
AWS News Blog
IT之家
IT之家
V
Vulnerabilities – Threatpost
The Hacker News
The Hacker News
H
Heimdal Security Blog
I
Intezer
A
Arctic Wolf
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Help Net Security
W
WeLiveSecurity

博客园 - ms_dos

数据库中char(13)+char(10)转换为页面的换行 CustomValidator验证CheckBoxList必须选择且只能选择一个 GridView编辑状态下DropDownList的联动 - ms_dos - 博客园 GridView单元格换行 - ms_dos - 博客园 js实现indexOf - ms_dos - 博客园 AspxCallBack控件的CallBack事件 js实现精确到小数点后几位的四舍五入函数 HyperLink控件邦定参数 - ms_dos - 博客园 CSS实现圆角DIV - ms_dos - 博客园 值得收藏的22个搜索下载免费PDF电子书的网站 游标的使用方法 [转]Sql Server遍历表记录 将页面滚动条置于顶端 div居中 - ms_dos - 博客园 ResolveUrl的用法 - ms_dos - 博客园 窗口全屏 JS实现一行内多列DIV同高 - ms_dos - 博客园 动态显示男女性别的两种方法 OnClientClick属性中的换行符 - ms_dos - 博客园
System.DBNull的用法
ms_dos · 2011-06-22 · via 博客园 - ms_dos

已知dr为某DataRow,

1)如果从数据库读出来的值为null,在后台代码中可以这样判断:dr["fieldname"] is System.DBNull,而不是dr["fieldname"] == null。

2)给DataRow的某字段赋空值,使用:dr["fieldname"] = System.DBNull.Value;

posted on 2011-06-22 14:03  ms_dos  阅读(1256)  评论(0)    收藏  举报

刷新页面返回顶部