摘要:
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("{ 阅读全文
摘要:
在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 阅读全文