博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 ··· 4 5 6 7 8 9 10 下一页

2008年10月23日

摘要: 无标题页 div1 div2 阅读全文

posted @ 2008-10-23 17:20 hyd309 阅读(591) 评论(0) 推荐(0) 编辑

2008年10月21日

摘要: 1 1 1 1 1 1 2 2 2 1 1 2 3 2 1 1 2 2 2 1 1 1 1 1 1 维数只能为奇数 int n = 4; int[,] array = new int[2*n-1, 2*n-1]; for (int i = 1; i "); } 阅读全文

posted @ 2008-10-21 17:11 hyd309 阅读(426) 评论(0) 推荐(0) 编辑

2008年10月20日

摘要: 版权声明:本文可以被转载,但是在未经本人许可前,不得用于任何商业用途或其他以盈利为目的的用途。本人保留对本文的一切权利。如需转载,请在转载时保留此版权声明,并保证本文的完整性。也请转贴者理解创作的辛劳,尊重作者的劳动成果。 作者:陈雷 (Jackei) 邮箱:jackeichan@gmail.com Blog:http://jackei.cnblogs.com 从10月15号开始,就陆续有朋友... 阅读全文

posted @ 2008-10-20 09:17 hyd309 阅读(258) 评论(2) 推荐(0) 编辑

2008年10月17日

摘要: SQL Server中截取日期型字段的日期部分: convert(varchar(10),getdate(),20) SQL Server中截取日期型字段的时间部分: convert(varchar(10),getdate(),8) 阅读全文

posted @ 2008-10-17 10:10 hyd309 阅读(1762) 评论(3) 推荐(0) 编辑

2008年10月6日

摘要: LinkButton bt =(LinkButton) e.Item.Cells[2].Controls[0]; Tbx_TypeName.Text =bt.Text; 阅读全文

posted @ 2008-10-06 15:44 hyd309 阅读(591) 评论(0) 推荐(0) 编辑

2008年9月27日

摘要: 下载: string strFileName = Server.UrlDecode(Server.UrlDecode(FileName)); Response.AppendHeader("Content-Disposition", "attachment; filename=" + Server.UrlEncode(strFileName)); ... 阅读全文

posted @ 2008-09-27 09:54 hyd309 阅读(308) 评论(0) 推荐(0) 编辑

摘要: 2 /// 为创建的临时文件分配权限 3 /// 4 /// 5 /// 6 /// 7 /// SKY 2007-8-6 8 public void addpathPower(string pathname, string username, string power) 9... 阅读全文

posted @ 2008-09-27 09:41 hyd309 阅读(726) 评论(0) 推荐(0) 编辑

摘要: 首先要熟悉.NET中处理文件和文件夹的操作。File类和Directory类是其中最主要的两个类。了解它们将对后面功能的实现提供很大的便利。 本节先对和文件系统相关的两个.NET类进行简要介绍。 System.IO.File类和System.IO.FileInfo类主要提供有关文件的各种操作,在使用时需要引用System.IO命名空间。下面通过程序实例来介绍其主要属性和方... 阅读全文

posted @ 2008-09-27 09:08 hyd309 阅读(1140) 评论(0) 推荐(0) 编辑

2008年9月22日

摘要: 阅读全文

posted @ 2008-09-22 14:58 hyd309 阅读(51611) 评论(1) 推荐(1) 编辑

2008年9月19日

摘要: datagrid控件: ... 阅读全文

posted @ 2008-09-19 17:25 hyd309 阅读(404) 评论(0) 推荐(0) 编辑

摘要: 间隔颜色 ... 阅读全文

posted @ 2008-09-19 15:15 hyd309 阅读(401) 评论(0) 推荐(0) 编辑

2008年9月17日

摘要: private void SetTree() //设置treeview 数据绑定 { TreeView.Nodes.Clear(); BM1.IBLL.IFileRgstBLL bll = BM1.Factory.BLLFactory.CreateIFileRgstBLL(); ArrayList list = bll.Ge... 阅读全文

posted @ 2008-09-17 19:26 hyd309 阅读(384) 评论(0) 推荐(0) 编辑

2008年9月11日

摘要: 先定义ASPX页面,注意AllowCustomPaging要设为"False": <body> <form id="DictList" method="post" runat="server"> <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing="0" width="100%" border="1"> <TR> <td bgColor="#c... 阅读全文

posted @ 2008-09-11 16:49 hyd309 阅读(265) 评论(0) 推荐(0) 编辑

2008年9月9日

摘要: 方式一:在被嵌入页里写入代码 假设main.htm文件内容: 则在iframe.htm文件中加入如下代码: 要测试效果则在iframe.htm文件中再加入一个表格(表格高度设大些): Hello! 用浏览器打开mail.htm就可以预览效果。 方式二:在父页中加入代码,被嵌入页不变(有两种方法) 一法: 在父页中加入如下代码: 然后myiframe.htm中为... 阅读全文

posted @ 2008-09-09 10:51 hyd309 阅读(671) 评论(0) 推荐(0) 编辑

2008年9月5日

摘要: 我们知道,在C#(.Net)内部所使用Unicode来存储字符串,这样在处理字符串的时候偶尔会发生一些不爽的事情。比如,如果字符串中有中文字符,而我们想取得固定长度字符串就颇为麻烦,下面提供了一个解决方案。在这个方案中,我们实现了这么几个功能: 取得给出字符串靠左边的子串,子串的大小为为指定长度; 如果给出的字符串长度大于给出的长度,则在子串的末端加上“..”。 避免出现半个汉字的情况。 ... 阅读全文

posted @ 2008-09-05 14:26 hyd309 阅读(1769) 评论(0) 推荐(0) 编辑

上一页 1 ··· 4 5 6 7 8 9 10 下一页