09 2020 档案
摘要:1.运行方法写在Global.asax文件中 public void Application_BeginRequest(Object sender, EventArgs e) { //过滤Post参数 string url = this.Request.Url.ToString(); string
阅读全文
摘要:1.添加引用 using System.Drawing; 2.画图方法 /// <summary> /// 画图 /// </summary> /// <param name="entity">实体 Model.ChargeInfo</param> /// <param name="pathbg">
阅读全文
摘要:if (Identification.Length == 18)//处理18位的身份证号码从号码中得到生日和性别代码 { string age = Identification.Substring(6, 4) + "-" + Identification.Substring(10, 2) + "-"
阅读全文
摘要:1.验证手机号码的方法: public static bool IsHandset(string str_handset){ return System.Text.RegularExpressions.Regex.IsMatch(str_handset, @"^1[3456789]\d{9}$");
阅读全文
摘要:/// <summary> /// 上传文件(上传到项目中),返回保存地址(保存文件文件夹+保存文件名称) /// </summary> /// <param name="file">HttpPostedFileBase</param> /// <param name="path">保存文件文件夹<
阅读全文

浙公网安备 33010602011771号