标签:gen file row 方法 logs use str turn ext
public string clFielName(string fileName) { System.Web.HttpContext curContext = System.Web.HttpContext.Current; string outputFileName = null; string browser = curContext.Request.UserAgent.ToUpper(); if (browser.Contains("MS") == true && browser.Contains("IE") == true) { outputFileName = System.Web.HttpUtility.UrlEncode(fileName); } else if (browser.Contains("FIREFOX") == true) { outputFileName = "\"" + fileName + "\""; } else { outputFileName = System.Web.HttpUtility.UrlEncode(fileName); } return outputFileName; }
原文链接:https://www.cnblogs.com/ThreeStone007/p/5401341.html
标签:gen file row 方法 logs use str turn ext
原文地址:https://www.cnblogs.com/w821759016/p/10191849.html