随笔分类 -  WEB部分

摘要:using System;using System.Data;using System.Data.SqlClient;using System.Configuration;using System.Collections;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;public partial class 阅读全文
posted @ 2012-05-26 09:25 朱_占_军 阅读(1027) 评论(4) 推荐(0)
摘要:protected void Button1_Click(object sender, EventArgs e) { this.DownLoadFile("12.txt"); } //下载函数 private void DownLoadFile(string fileName) { string filePath = Server.MapPath(".") + "\\" + fileName; if (File.Exists(filePath)) { FileInfo file = ... 阅读全文
posted @ 2012-05-20 23:04 朱_占_军 阅读(207) 评论(0) 推荐(0)
摘要:public string Save(string groupName, string fileName, bool replace, string contentType, byte[] buffer,string name) { FilesManagerConfiguration fmgConfig = GetConfig(); if (!Directory.Exists(fmgConfig.UploadPath)) { return null; } if (!fmgConfig.GroupTable.Contains(groupName)) { return null; } Files. 阅读全文
posted @ 2012-04-24 17:36 朱_占_军 阅读(230) 评论(0) 推荐(0)