12 2012 档案

摘要:我个人理解,瀑布流就是开始加载多少条,然后再通过scroll事件追加加载数据,我说的可能不好理解,具体结合代码应该能看懂,如果我理解的不好请多多包涵。css代码:View Code 1 <style type="text/css" > 2 .body{ background-color:#eee;}3 #main{ background-color:White; width:920px; margin:0 auto;}4 .item{width:225px; float:left; display:inline; margin-right:5px; margin 阅读全文
posted @ 2012-12-20 16:06 weych 阅读(328) 评论(0) 推荐(0)
摘要:流方式下载View Code 1 //string fileName = "file/s.txt"; //定义文件的路径 2 //string filePath = Server.MapPath(fileName); //将指定的虚拟路径转换成物理路径 3 ////以字符流的形式下载文件 4 //FileStream fs = new FileStream(filePath,FileMode.Open); 5 //byte[] bt = new byte[(int)fs.Length]; 6 //fs.Read(bt,0,bt.Length); 7 //fs.Close() 阅读全文
posted @ 2012-12-12 14:29 weych 阅读(212) 评论(0) 推荐(0)
摘要:第一步:在页面中要应用命名空间 using System.Web.Mail;第二步:编写代码一下代码View Code 1 //创建一个附件对象 2 MailAttachment objMail = new MailAttachment("C:\\Documents and Settings\\Administrator\\桌面\\nicpetshop创建项目的步骤.txt"); 3 //创建一个消息对象 4 MailMessage mail = new MailMessage(); 5 //收信人地址 6 mail.To = ""; 7 //发信人地址 阅读全文
posted @ 2012-12-10 16:32 weych 阅读(138) 评论(0) 推荐(0)