会员
众包
新闻
博问
闪存
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
2009年3月22日
WinForm中的窗体传值
摘要: WinForm中的窗体传值的多种方法 2008-11-30 16:16 WinForm中的窗体传值有多种方法,自己结合相关资料总结了一下,大概有5种方式(或者更多): 1、通过 ShowDialog()进行传值; 2、通过改造构造函数进行传值(加参数); ...
阅读全文
posted @ 2009-03-22 20:57 sherry
阅读(613)
评论(0)
推荐(0)
编辑
2009年2月1日
gridview 格式化
摘要: DataFormatString="{0:格式字符串}" 在GridView中如果直接设置DataFormatString为{0:d}浏览会发现并不会呈现预期的效果. 还要在HtmlEncode中把值设为False,DataGrid中不会,具体原因不清楚 在DataFormatString 中的 {0} 表示数据本身,而在冒号后面的格式字符串代表所们希望数据显示的格式; 数字、货币格式: 在指定...
阅读全文
posted @ 2009-02-01 14:18 sherry
阅读(858)
评论(0)
推荐(0)
编辑
2009年1月5日
js 日历
摘要:
阅读全文
posted @ 2009-01-05 17:04 sherry
阅读(3528)
评论(2)
推荐(0)
编辑
2008年12月8日
asp.net treeview 动态读取数据库
摘要: TreeNode _node = new TreeNode(); TreeNode noderoot = new TreeNode(); if (TreeView1.Nodes.Count == 0) //添加根节点 { noderoot.Text = "所有系统结构"; ...
阅读全文
posted @ 2008-12-08 16:55 sherry
阅读(512)
评论(0)
推荐(0)
编辑
2008年10月23日
触发器基础
摘要: T-SQL 游标CURSOR的使用及其他 (1) T-SQL 游标CURSOR的使用 使用起来很简单,先定义,然后赋个值,打开,通过While Loop 一个一个读下去,最后关闭,释放内存。基本套路如下: DECLARE MyCursor cursor /* 声明游标,默认为单纯向前的游标。如果想要前后跳来跳去的,写成Scroll Cursor即可 */ FOR SELECT Co...
阅读全文
posted @ 2008-10-23 16:08 sherry
阅读(245)
评论(0)
推荐(0)
编辑
2008年10月6日
SQL:左连接,右连接,全连接
摘要: Left join , Right Join, Inner Join 用法(生成新的数据表) 即是多表连接,组成一个新的数据表输出! 仅当至少有一个同属于两表的行符合联接条件时,内联接才返回行。内联接消除与另一个表中的任何行不匹配的行。 例子 Table A aid adate 1 a1 2 a2 3 a3 TableB bid bdate 1 b1...
阅读全文
posted @ 2008-10-06 16:10 sherry
阅读(7463)
评论(0)
推荐(1)
编辑
2008年9月28日
GridView 动态添加行并且刷新后保留记录
摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { createTable(); } } private void createTable() //创建一个表 { D...
阅读全文
posted @ 2008-09-28 15:30 sherry
阅读(3674)
评论(1)
推荐(0)
编辑
2008年9月27日
UltraWinGrid常用技巧
摘要: 1 委托 this.ultraGrid1.AfterCellUpdate -= new Infragistics.Win.UltraWinGrid.CellEventHandler(this.ultraGrid1_AfterCellUpdate); this.ultraGrid1.Rows[0].Cells["字段名"].Value = ""; this.ultraGr...
阅读全文
posted @ 2008-09-27 16:07 sherry
阅读(8105)
评论(0)
推荐(0)
编辑
C#日期格式化
摘要: C#日期格式化 日期转化一 为了达到不同的显示效果有时,我们需要对时间进行转化,默认格式为:2007-01-03 14:33:34 ,要转化为其他格式,要用到DateTime.ToString的方法(String, IFormatProvider),如下所示: using System; using System.Globalization; String format="D"; DateTime...
阅读全文
posted @ 2008-09-27 16:06 sherry
阅读(329)
评论(0)
推荐(0)
编辑
2008年9月26日
有用的sql(将两表数据合为一个表)
摘要: select A.ID,A.V_Name,A.V_FileType, 0 as i_masterid,A.I_Size,A.v_serPath,A.v_serpath+A.v_serfilename filepath from P_FixFileList A where A.ID NOT IN (SELECT I_FixFileListID FROM P_DocFixFileList...
阅读全文
posted @ 2008-09-26 17:53 sherry
阅读(738)
评论(0)
推荐(0)
编辑
下一页
sherry
公告
导航
博客园
首页
新随笔
联系
订阅
管理