摘要: 偶然看到的,记录一下,以免忘记字符串:string s = "1,2,3,4,5,"目标:删除最后一个 ","方法:1、用的最多的是Substring,这个也是我一直用的 s=s.Substring(0,s.Length-1)2、用 RTrim,这个我原来只知道用来删除最后的空格,也没有仔细看过其它的用法,才发现可以直接trim掉一些字符 s=s.ToString().RTrim(',')3、用T... 阅读全文
posted @ 2009-11-03 10:55 独行剑 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: .net 获取Excel所有工作表名称: OleDbConnection oleConn = new OleDbConnection(); oleConn.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0;data source=D:\\Data.xls;Extended Properties=Excel 8.0;"; oleConn.Ope... 阅读全文
posted @ 2009-11-02 11:34 独行剑 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 在做程序时用到过,仅供参考详细见附件:/Files/chenlong/支付宝接口.rar 阅读全文
posted @ 2009-10-28 15:51 独行剑 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 演示效果一:详细见附件:/Files/chenlong/通用的图片浏览器flash.rar 演示效果二:详细见附件:/Files/chenlong/图片切换.rar 阅读全文
posted @ 2009-10-28 15:27 独行剑 阅读(240) 评论(0) 推荐(0) 编辑
摘要: <button style="width:400;height:400;background:transparent;border:o;padding:0;cursor:hand" onclick="window.location.href='url'"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ... 阅读全文
posted @ 2009-10-28 15:22 独行剑 阅读(588) 评论(0) 推荐(0) 编辑
摘要: Visual Studio 2008 Express Edition All-in-One DVD下载页面:http://www.microsoft.com/express/download/下载中文版方法:选择Chinese (Simplified)简体中文——点击》》DownloadStudio 2008 Express Edition All-in-One DVD微软... 阅读全文
posted @ 2009-10-28 12:01 独行剑 阅读(1584) 评论(0) 推荐(0) 编辑
摘要: 做项目时遇到dotnet上传大文件受限制,即便是修改Web.Config中的maxRequestLength值最大上传文件仍不超过20M下面附件可上传小于600M文件供大家参考详细见附件:/Files/chenlong/AspnetUploadDemo_23.rar 阅读全文
posted @ 2009-10-27 17:07 独行剑 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 演示文档:http://www.mysuc.com/test/My97DatePicker/详细见附件:/Files/chenlong/v200886143535.rar 阅读全文
posted @ 2009-10-27 16:45 独行剑 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 一个调用存储过程的通用类.调用这个类的方法如下:public DataTable GetNewsList(int classID,int subClassID,int type){ SQLParameter[] paras = { new SqlParameter("@classID",SQLDbType.Int), new SqlParameter("@subClassID",SQLDbTyp... 阅读全文
posted @ 2009-10-27 16:39 独行剑 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 在listBox中显示dropDownList中选定的部门一 SQL SERVER建立两张表 1 建立数据库department 2 在department中建立两张表:部门表 TDepartment(depID,depName) 员工表 emp(empID,empName,depID)二 在VS下新建Web页 1 拖入一个dropDownList和一个listBox,分别改名为ddlDep,lB... 阅读全文
posted @ 2009-10-27 16:16 独行剑 阅读(336) 评论(0) 推荐(0) 编辑