- 博客(10)
- 收藏
- 关注
原创 ASP.NET弹出式日历选择控件
<br />ASP.NET弹出式日历选择控件具体如下实现:<br />在需要调用日期选择的页面放置两个TEXTBOX与BUTTON以选择开始时间与结束时间,并在html代码的 < /body>之前加入如下javascript语句:< script language="javascript"> function openModeBegin() { var returnValue=window.showModalDialog("CalendarForm2.aspx",F
2010-09-19 10:36:00
812
原创 日期格式转换
<br />1:时间格式转换 <br />System.DateTime currentTime=new System.DateTime(); <br />1.1 取当前年月日时分秒 <br />currentTime=System.DateTime.Now; <br />1.2 取当前年 <br />int 年=currentTime.Year; <br />1.3 取当前月 <br />int 月=currentTime.Month; <br />1.4 取当前日 <br
2010-09-19 10:28:00
481
原创 C#时间格式
<br />1:时间格式转换 <br />System.DateTime currentTime=new System.DateTime(); <br />1.1 取当前年月日时分秒 <br />currentTime=System.DateTime.Now; <br />1.2 取当前年 <br />int 年=currentTime.Year; <br />1.3 取当前月 <br />int 月=currentTime.Month; <br />1.4 取当前日 <br
2010-09-17 11:02:00
654
原创 汉字转拼音的类
publicstring GetChineseSpell(string strText) { if (strText ==null|| strText.Length ==0) return strText; System.Text.StringBuilder myStr =new System.Text.StringBuilder(); foreach (char vChar i
2010-09-11 21:49:00
361
原创 C#日期加减,字符串转日期
C#日期加减,字符串转日期2010-03-23 15:35<br />格式字符串转日期<br />datestr="2009-4-25";<br />DateTime date=DateTime.Parse(datestr).AddHours(8);<br />日期加减<br />方法一:<br /> DateTime.Today.AddDays(-1).ToString("yyyy-MM-dd")<br />方法二:<br /> TimeSpan span = new DateTim
2010-09-11 08:51:00
2792
转载 DataGridwiew
DataGridView的一些技巧最近一直跟DataGridView打交道,突然觉得很多技巧性的东西很模糊,经过最近的个人实验操作和从网上查到的资料<br />把对DataGridView操作的一些技巧总结和借鉴了一下,总结如下:<br /><br />1、自定义列 Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behavior and Appearance H
2010-09-11 08:50:00
583
转载 DataGridView的一些技巧
DataGridView的一些技巧最近一直跟DataGridView打交道,突然觉得很多技巧性的东西很模糊,经过最近的个人实验操作和从网上查到的资料<br />把对DataGridView操作的一些技巧总结和借鉴了一下,总结如下:<br /><br />1、自定义列 Customize Cells and Columns in the Windows Forms DataGridView Control by Extending Their Behavior and Appearance H
2010-09-06 11:32:00
281
转载 C# WinForm开发系列 - DataGrid/DataGridView
<br /> 在WinForm开发中,DataGrid/DataGridView被广泛使用于绑定数据库中数据进行呈现.整理一些关于DataGrid/DataGridView使用的文章,涉及DataGrid/DataGridView基本功能,自定义绘制控件,数据导入/导出(Excel),打印等.<br />1.新数据网格简介(DataGridView)<br />2.自定义DataGridView外观<br />3.怎样让WinForms下DataGrid可以像ASP.NET下的DataGrid一样使用
2010-09-06 11:30:00
513
转载 DataTalbe用法
<br />Create a DataTable<br /> DataTable dt = new DataTable("Table_AX");<br /><br /> //②Add columns for DataTable<br /> //Method 1<br /> dt.Columns.Add("column0", System.Type.GetType("System.String"));<br /> //Method 2<br
2010-09-01 07:47:00
526
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人