摘要:
/// <summary> /// SQL like 语句特殊字符 替换 /// </summary> /// <returns></returns> public static string SQLStrReplace(string str) { String RetuenValue = ""; if (str.Trim() != "") { RetuenValue = str.Replace("[", "[[]").Replace("'" 阅读全文
摘要:
View Code #region 中英文截取长度一致 //是否是中文 public static bool IsChinese(char c) { return (int)c >= 0x4E00 && (int)c <= 0x9FA5; } //获得字节长度 private static int getLengthb(string str) { return System.Text.Encoding.Default.GetByteCount(str); } //c#的中英文混合字符串截取指定长度,sta... 阅读全文
摘要:
View Code using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using Com.Netmarch.BLL;using Com.Netmarch.Model;/// <summary 阅读全文
摘要:
View Code protected void Page_Load(object sender, EventArgs e) { try { //获取文件路径 string filepath = Server.MapPath("xmsbry/upload/b/") + Request.QueryString["filename"]; if (System.IO.File.Exists(filepath)) { Download(filepat... 阅读全文