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

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

博客园 - xiazhaoxia

关于《会员专区》项目经验分享 dell的1501和640m,买哪个好呢? 数码相机成像好坏的关键?! 我要试试洋酒! 我爱网购! DataGrid数据导出到Excel You are my everything Remeber me by 李孝利 关于oracle中的去除null和空格的问题 致力于blog的新衣服 datagrid小tip(三):导入Excel的问题?! datagrid小tip(二):拼接多层表头 datagrid小tip(一):鼠标的移动和点击变色 相对路径or绝对路径? DataGrid的动态绑定问题(二) 续 oracle中的联合主键查询问题! DataGrid的动态绑定问题(二) __doPostBack()无效 ? 屏蔽页面刷新功能
asp.net学习点滴
xiazhaoxia · 2006-03-28 · via 博客园 - xiazhaoxia

1.计算两个日期之间相差的天数
    System.DateTime dtA=(DateTime)this.StartDate.Text;
    System.DateTime dtB=(DateTime)this.EndDate.Text;
    TimeSpan c=db-da;
    Response.Write(c.TotalDays);
2 转换日期需求的字符串格式
   Calendar2.SelectedDate.ToString("yyyy-MM-dd");日历控件选择完日期后,转换成需要的字符串格式。 这里的格式化居然大小写轮换,不明白表示月的为什么要大写,小写居然就不支持。
3 控件级属性的实现方法

 1         #region 控件属性        
 2         //true-显示全部列 false-隐藏部分列
 3         public bool IsVisible
 4         {
 5             get 
 6             {                 
 7                 return (ViewState["IsVisible"== null? truebool.Parse(ViewState["IsVisible"].ToString());
 8             }
 9             set 
10             {
11                 ViewState["IsVisible"= value;
12             }    
13         }
14     
15         //显示数据类型 0-交办 1-待办
16         public  int ShowType 
17         {  
18             get 
19             {                 
20                 return (ViewState["ShowType"== null? 0int.Parse(ViewState["ShowType"].ToString());
21             }
22             set 
23             {
24                 ViewState["ShowType"= value;
25             }
26         }
27         #endregion
28 

以前一直搞不懂viewstate的用法,现在用到了,终于明白了,看来在实战中积累经验真的很重要: )