03 2014 档案

摘要:SqlCommand cmd; SqlCommand[] cmds, cmds1; cmds=new SqlCommand[10]; cmds1=new SqlCommand[10]; for (int i = 0; i < 10; i++) { cmd = new SqlCommand("select * from dbo.table" + i.ToString()); cmds[i] = cmd; ... 阅读全文
posted @ 2014-03-26 09:56 dennys 阅读(170) 评论(0) 推荐(0)
摘要:class Program { static void Main(string[] args) { Hashtable hs=new Hashtable(); List collection=new List(120); Game[] fs= { new Game(1,"100","alisdun"), new Game(2,"200","blisdun"), ... 阅读全文
posted @ 2014-03-26 09:23 dennys 阅读(217) 评论(0) 推荐(0)
摘要:string connString = ConfigurationManager.AppSettings["SqlConn"].ToString(); var conn=new SqlConnection(connString); //var cmd = new SqlCommand("SELECT alliance,ballid FROM talliance with(nolock) WHERE type=8 AND alliance like '%'+@alliance;"); ... 阅读全文
posted @ 2014-03-26 09:18 dennys 阅读(1234) 评论(0) 推荐(0)
摘要:网页可见区域宽:document.body.clientWidth;网页可见区域高: document.body.clientHeight;网页可见区域宽: document.body.offsetWidth (包括边线的宽);网页可见区域高: document.body.offsetHeight (包括边线的宽);网页正文全文宽: document.body.scrollWidth;网页正文全文高: document.body.scrollHeight;网页被卷去的高: document.body.scrollTop;网页被卷去的左: document.body.scrollLeft;网页正 阅读全文
posted @ 2014-03-13 14:12 dennys 阅读(172) 评论(0) 推荐(0)
摘要:播放声音:$("#song").html("")滚动图片: 鼠标附近信息弹出:tip 文本隐藏显现: 让你的文本链接渐隐渐显脚本翻页 JavaScript: showPages v1.0 [by Lapuasi.com] 阅读全文
posted @ 2014-03-08 11:58 dennys 阅读(192) 评论(0) 推荐(0)
摘要:把音频文件上传到数据库,然后读取出来播放:表名: myfile; 表字段: id(int), Content(image),Type(varchar(50)) using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web... 阅读全文
posted @ 2014-03-08 11:24 dennys 阅读(546) 评论(0) 推荐(0)
摘要:str.Trim(',') 清除字符串后的“,”字符串分隔符截取:str.Split(new char[]{','})输出21个A的简单做法:string str=new string('A',21)字符串转化整数:Int32.TryParse() 性能好 层内显示手型windows 服务:若要确定如何启动服务,请单击 ServiceInstaller 组件并将 StartType 属性设置为适当的值。Manual服务安装后,必须手动启动Automatic每次计算机重新启动时,服务都会自动启动Disabled服务无法启动windows服务安装与卸 阅读全文
posted @ 2014-03-08 11:20 dennys 阅读(149) 评论(0) 推荐(0)