09 2012 档案
摘要:private const string filename = "demo.xml"; static void Main(string[] args) { XmlTextWriter writer=new XmlTextWriter(filename,null); //进行输出格式缩进设置 writer.Formatting = Formatting.Indented; //写XML声明 writer.WriteStartDocument(); ...
阅读全文
摘要:string strNewName = System.Guid.NewGuid().ToString(); strNewName += this.FileUpload1.FileName.Substring(FileUpload1.FileName.LastIndexOf('.')); string filePath = this.FileUpload1.PostedFile.FileName; System.Drawing.Image oldImage, newImage; System.IO.S...
阅读全文
摘要:protected void Button1_Click(object sender, EventArgs e) { string driPath = "~/WebApplication3/" + DateTime.Now.Year.ToString() + "/" + DateTime.Now.Month.ToString() + "/"; string phyPath = Server.MapPath(driPath); if (!Directory.Exists(phyPath)) {...
阅读全文

浙公网安备 33010602011771号