摘要: 引用:using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Mail;using System.Text;EMailHepler类:public static... 阅读全文
posted @ 2015-09-02 17:39 小小中 阅读(902) 评论(0) 推荐(1) 编辑
摘要: 1. 配置错误说明:在处理向该请求提供服务所需的配置文件时出错。请检查下面的特定错误详细信息并适当地修改配置文件。分析器错误消息:无法识别的属性“targetFramework”。请注意属性名称区分大小写。错误原因: .Net FramsWork 版本不对,目标版本FramsWork 4.0, 而应... 阅读全文
posted @ 2015-07-31 15:26 小小中 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 在任务中需要实现点击浏览器back按钮,加载的前一页面需要强制刷新.想要在前端通过js来绑定数据实现,但是觉得太麻烦,还是用另一种方式来解决: 不缓存该页面。简单易懂:Response.Cache.SetCacheability(HttpCacheability.NoCache);Response.... 阅读全文
posted @ 2015-07-20 15:03 小小中 阅读(1047) 评论(0) 推荐(0) 编辑
摘要: Date.prototype.Format = function (formatStr) { var str = formatStr; var Week = ['日', '一', '二', '三', '四', '五', '六']; s... 阅读全文
posted @ 2015-07-10 15:40 小小中 阅读(3098) 评论(0) 推荐(0) 编辑
摘要: private static readonly String[][] s_HTTPStatusDescriptions = new String[][] { null, new String[] { ... 阅读全文
posted @ 2015-06-26 17:05 小小中 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 在工作中遇到个问题,在使用lamda查询数据的时候,需要添加一个时间判断, DateTime.AddDays(3) >e.ExpirationDate例如:list = Context.VoucherUserSignPLView.Where(e => e.IsUse == isUse && e.Ex... 阅读全文
posted @ 2015-06-24 12:04 小小中 阅读(3841) 评论(0) 推荐(1) 编辑
摘要: 通过JavaSrcipt调用WebService格式://通过SricptManager 的,services标签添加web服务引用 在Javasript中使用格式 : 命名空间.类名.方法名(参数);function RefService() { ... 阅读全文
posted @ 2015-03-18 10:40 小小中 阅读(942) 评论(0) 推荐(0) 编辑
摘要: /// /// 性别 /// public enum enumIDCardSex { //女性 Woman = 0, //男性 Man = 1 } /// /// 身份证检查工具 /// ... 阅读全文
posted @ 2015-02-05 15:46 小小中 阅读(243) 评论(0) 推荐(0) 编辑
摘要: Char("0") 为0的字符Char("1")Char("2")Char("3")Char("4")Char("5")Char("6")Char("7") 响铃Char("8") 回格Char("9") tab(水平制表符)Char("10") 换行Char("11") tab(垂直制表符)Cha... 阅读全文
posted @ 2015-02-05 15:24 小小中 阅读(898) 评论(0) 推荐(0) 编辑
摘要: 使用textBox控件的KeyPress事件private void textBox_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar 57) e.Handle... 阅读全文
posted @ 2015-02-05 10:00 小小中 阅读(825) 评论(0) 推荐(0) 编辑