随笔分类 -  .net

摘要:private string HtmlToUBB(string _Html) { _Html = Regex.Replace(_Html,"]*>","\n"); _Html = Regex.Replace(_Html,@"\/]*\/>","\n"); _Html = Reg... 阅读全文
posted @ 2014-10-21 13:15 dcrenl 阅读(322) 评论(0) 推荐(0) 编辑
摘要:public void CreateExcel(DataSet ds, string typeid, stringFileName) { HttpResponse resp; resp =Page.Response; resp.ContentEncoding =System.... 阅读全文
posted @ 2014-10-21 13:14 dcrenl 阅读(277) 评论(0) 推荐(0) 编辑
摘要:ASPxTreeList在使用ASPxGridViewExporter控件做导出时,如果指定文件名是中文时会乱码可以用以下方法解决:grvExporter为ASPxGridViewExporter控件的IDgrvExporter.WriteXlsToResponse(HttpUtility.UrlE... 阅读全文
posted @ 2014-10-21 13:14 dcrenl 阅读(393) 评论(0) 推荐(0) 编辑
摘要:统计汇总功能:TotalSummary属性:此属性必须设置KeyFieldName属性;Settings中的ShowFooter属性设置为True。DisplayFormat:同.net中的String.Format使用方法基本相同。例如:总计{0}个。此处可以设置统计方式显示时的小数位数等。设置方... 阅读全文
posted @ 2014-10-21 13:14 dcrenl 阅读(240) 评论(0) 推荐(0) 编辑
摘要:vs.net打包程序或者制作安装程序时自动检测环境并安装.netframwork的设置方法之前我看过文档也做过,但是过一段时间又忘了,现在终于又找到方法了,还是把这个方法写下来吧,方便自己也方便大家将来查询用。 vs.net打包或者制作安装程序时进行自动检测环境并安装.netframwork的设置... 阅读全文
posted @ 2014-10-21 13:13 dcrenl 阅读(459) 评论(0) 推荐(0) 编辑
摘要:1.字符串比较字符串.ComparTo(目标字符串)"a".ComparTo("b");2.查找子串字符串.IndexOf(子串,查找其实位置) ;字符串.LastIndexOf(子串) ;最后一次出现的位置str.IndexOf("ab",0);3.插入子串字符串.Insert(插入位置,插入子串... 阅读全文
posted @ 2014-10-21 13:13 dcrenl 阅读(252) 评论(0) 推荐(0) 编辑
摘要:vs.net打包程序或者制作安装程序时自动检测环境并安装.net framwork的设置方法之前我看过文档也做过,但是过一段时间又忘了,现在终于又找到方法了,还是把这个方法写下来吧,方便自己也方便大家将来查询用。vs.net打包或者制作安装程序时进行自动检测环境并安装.net framwork的设置... 阅读全文
posted @ 2014-10-20 11:05 dcrenl 阅读(4972) 评论(0) 推荐(0) 编辑
摘要://自定义的类model m = new model();//取得类的Type实例//Type t = typeof(model);//取得m的Type实例Type t = m.GetType();string className = t.Name +"\r\n";//获取所有方法System.Re... 阅读全文
posted @ 2014-10-16 16:03 dcrenl 阅读(1545) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示