摘要: 1 /// 2 /// 截取指定长度字符串 3 /// 4 /// 要处理的字符串 5 /// 指定长度 6 /// 返回处理后的字符串 7 public static string ClipString(string inputString, int len) 8 { 9 bool isShowFix = false;10 if (len % 2 == 1)11 {12 ... 阅读全文
posted @ 2014-02-25 09:22 张三的编码生活 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 后台弹出操作成功,失败信息 1 /// 2 /// 弹出信息,并跳转指定页面。3 /// 4 public static void AlertAndRedirect(string message, string toURL)5 {6 string js = "";7 HttpContext.Current.Response.Write(string.Format(js, message, toURL));8 HttpContext.Curre... 阅读全文
posted @ 2014-02-25 09:16 张三的编码生活 阅读(586) 评论(0) 推荐(0) 编辑