摘要: using System;using System.Collections;using System.Configuration;using System.Data;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using YTLib.Basic;using YTLib.YTDBC;using System 阅读全文
posted @ 2012-05-20 23:09 朱_占_军 阅读(211) 评论(0) 推荐(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 朱_占_军 阅读(202) 评论(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 朱_占_军 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 在工作中这两个关于字符串的方法是用频率挺高的,刚开始我总是混淆,写在博客上可以随时查看。string s ="Hello,World!";string s1 = s.Substring(0,5) //截取字符串从一个位置,到另一位置这样s1 = "Hello";string s = "zhu,zhan,jun";string[] arr = s.Split(','); //把字符串中的以某一个符号或字符分成若干个子串,并放到数组中。这样可以得到一个数组,arr[0]= "zhu"arr[1] =&q 阅读全文
posted @ 2012-04-23 23:05 朱_占_军 阅读(4262) 评论(0) 推荐(0) 编辑
摘要: 从现在开始我会将我学习的东西一点一点的写到博客上与大家分享,一是我在写的过程中能更加熟练,二希望让刚开始学习asp.net的同学可以参考。因为我本人也是刚刚接触asp.net还是个菜鸟,有错误之处还希望能留言,十分感谢!动态生成验证码实例:1.首先在前台写好相应的代码: <table><tr><td> <img src ="CodeHandler.ashx" id ="image"/> </td><td><asp:LinkButton runat = "server& 阅读全文
posted @ 2012-04-23 22:30 朱_占_军 阅读(462) 评论(0) 推荐(0) 编辑