摘要: public class JsonParseService { /// <summary> /// dataset转Json /// </summary> /// <param name="ds"></param> /// <returns></returns> public static string DatasetToJson(System.Data.DataSet ds) { StringBuilder json = new StringBuilder(); json.Append("{ 阅读全文
posted @ 2013-04-28 11:40 kezhiping 阅读(549) 评论(1) 推荐(0) 编辑
摘要: 在asp.net中,处理数据的时候,经常会用到html过滤器这个东西,比如在一篇新闻中,你要回去简略的前100个字,怎么办?你就得过滤掉这些html标签public class HtmlDel { public static string checkStr(string html) { System.Text.RegularExpressions.Regex regex1 = new System.Text.RegularExpressions.Regex(@"<script[\s\S]+</script *>", System.Text.RegularE 阅读全文
posted @ 2013-04-28 11:31 kezhiping 阅读(903) 评论(1) 推荐(0) 编辑
摘要: 主要用于美化上传功能:源码:@{ Layout = null;} Index asp.net 深圳 qq技术交流群 171560784 阅读全文
posted @ 2013-04-19 15:01 kezhiping 阅读(2786) 评论(0) 推荐(0) 编辑
摘要: 本人比较懒,直接给源码了!@{ Layout = null;} Index ///你的Jquery库 ///你必须加载的jquery文件 选择的文字 jquery.colorpicker.js 文件内容如下:/*** @author 疯狂秀才 (代加工,不算原创,jquery 插件不是很... 阅读全文
posted @ 2013-04-19 14:09 kezhiping 阅读(721) 评论(2) 推荐(1) 编辑