摘要: 前台代码 后台 protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { Session["demo"] = new List(); } } string file_KB = FileUpload1.PostedFile.ContentLength.ToString() + "KB";//获取文件大小 string file =... 阅读全文
posted @ 2014-02-18 22:50 914556495 阅读(224) 评论(0) 推荐(0)
摘要: 控制台应用程序 static void Main(string[] args) { string hdValue = "T.png10660KB上传文件成功"; string hdValueTemp = hdValue.Replace("", "").Replace("", "").Replace("", ""); string hdValueActual = hdValueTemp.Substring(hdValueTemp.IndexOf(" 阅读全文
posted @ 2014-02-18 18:15 914556495 阅读(126) 评论(0) 推荐(0)
摘要: 点击button先执行js在执行后台代码前台代码: 为什么是这呢:ctl00_ctl40_g_0ba9405d_7635_4463_85d4_510f0221d4f1_TextBox1这个是前台获取的TextBox1获取编译的来的或者直接写: TextBox1属性必须如下: 阅读全文
posted @ 2014-02-18 16:30 914556495 阅读(274) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-02-18 12:58 914556495 阅读(218) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2014-02-18 10:37 914556495 阅读(427) 评论(0) 推荐(0)