• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
asp.net 空间站
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2
2010年9月1日
.net,C#,Ftp各种操作,上传,下载,删除文件,创建目录,删除目录
摘要: using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using ... 阅读全文
posted @ 2010-09-01 15:07 裴鹏 阅读(799) 评论(0) 推荐(0)
2010年8月31日
C#获取字段
摘要: /// <summary>/// 获得数据列表/// </summary>public DataTable GetList(string strWhere){StringBuilder strSql=new StringBuilder();strSql.Append("select * FROM A");if(strWhere.Trim()!=""){strSql.Appe... 阅读全文
posted @ 2010-08-31 14:59 裴鹏 阅读(324) 评论(0) 推荐(0)
指正源文件并把它转成二进制然后转换成图片进行保存至指定位置
摘要: //指定源文件夹 string[] dirs = System.IO.Directory.GetDirectories("E:\\AutoSite\\img\\"); foreach (string dir in dirs) { string fileName = dir.Substring(dir.LastIndexOf("\\") + 1); //获取文件夹名 string[] files =... 阅读全文
posted @ 2010-08-31 14:50 裴鹏 阅读(350) 评论(0) 推荐(0)
二进制上传图片到数据库当中
摘要: HttpFileCollection Files = HttpContext.Current.Request.Files; //上传二进制图片 for (int i = 0; i < Files.Count; i++) { HttpPostedFile f = Files[i]; string fileName = System.IO.Path.GetFileName(f.FileName)... 阅读全文
posted @ 2010-08-31 14:38 裴鹏 阅读(284) 评论(0) 推荐(0)
动态增加N 个上传控件,实现批量上传
摘要: JS:<script language="javascript" type="text/ecmascript"> //====================== //功能:在表单中input file控件 //参数:parentID---要插入input file控件的父元素ID // inputID----input file控件的ID //====================... 阅读全文
posted @ 2010-08-31 14:33 裴鹏 阅读(556) 评论(0) 推荐(0)
2007年3月10日
SQL精华~~~与大家分享~~~~
摘要: --1、查找员工的编号、姓名、部门和出生日期,如果出生日期为空值,--显示日期不详,并按部门排序输出,日期格式为yyyy-mm-dd。select emp_no ,emp_name ,dept , isnull(convert(char(10),birthday,120),'日期不详') birthdayfrom employeeorder by dept --2、查找与喻自强在同一个... 阅读全文
posted @ 2007-03-10 17:08 裴鹏 阅读(223) 评论(0) 推荐(0)
上一页 1 2
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3