随笔分类 - ASP.NET
摘要:不断整理中。。。 获取当前时间DateTime.Now.ToString("d") ;//获取到的日期格式为eg :2013/11/14 时间格式只取年月日DateTime.Now.ToShortDateString(); //2013/11/14 获取年份/月份DateTime.Now.Year.
阅读全文
摘要:关键代码: --上传的stream处理,转为bytep[] private void Parse(Stream stream, Encoding encoding) { this.Success = false; byte[] bytes = this.ToByteArray(stream); string input = encoding.GetString(bytes...
阅读全文
摘要:string path = System.IO.Directory.GetCurrentDirectory() + @"\POIImages\"; Guid imgid = Guid.NewGuid(); byte[] ImageByte = Convert.FromBase64String(pic); /// /...
阅读全文
摘要:1.aspx ...
阅读全文