2008年11月25日
摘要: protectedvoidPage_Load(objectsender,EventArgse){if(!IsPostBack){stringpaths=@"F:/学习专用文件夹/网页";Booleanflag=ReadFiles(paths);if(flag){Txtmess.Text=Directory.GetFiles(paths).ToString();}else{Response.Write("对不起,有误");}}}privateBooleanReadFiles(stringdirroot){Booleanflag=false;string[] 阅读全文
posted @ 2008-11-25 11:32 叮叮猫的编程世界 阅读(88) 评论(0) 推荐(0) 编辑
  2008年11月19日
摘要: ///<summary> ///根据文件夹路径得到文件路径下所有的文件 ///</summary> ///<paramname="pathtext"></param> //publicvoidListFiles(stringpathtext) //{ //try //{ //if(pathtext==null||pathtext.Equals("")) //{ //Response.Write("路径不能为空错误"); //} //else //{ ////得到文件名,目录 //stri 阅读全文
posted @ 2008-11-19 10:26 叮叮猫的编程世界 阅读(201) 评论(0) 推荐(0) 编辑
  2008年11月14日
摘要: 1.QQ在线咨询代码 (qq在线交谈代码/qq在线客服代码/qq在线状态代码/qq在线客服代码) (将66757924换成你的号码,site后面换成你的网站就可以了)<a target="blank" href="http://wpa.qq.com/msgrd?V=1&Uin=66757924&Site=服务易&Menu=yes"><img border="0" SRC=http://wpa.qq.com/pa?p=1:66757924:6 alt="点击这里给我发消息" 阅读全文
posted @ 2008-11-14 11:01 叮叮猫的编程世界 阅读(409) 评论(0) 推荐(0) 编辑
  2008年11月12日
摘要: stringthePath="../../Upload/Star/";thePath=Server.MapPath(thePath);//得到文件绝对路径 System.IO.DirectoryInfod=newSystem.IO.DirectoryInfo(thePath);System.IO.DirectoryInfo[]ds=d.GetDirectories("*.*",System.IO.SearchOption.TopDirectoryOnly);foreach(System.IO.DirectoryInfovarinds){//路径全称 Re 阅读全文
posted @ 2008-11-12 15:54 叮叮猫的编程世界 阅读(150) 评论(0) 推荐(0) 编辑
摘要: ///<summary> ///图片上传 ///</summary> ///<paramname="TheFileName">保存的文件名称,不需要后缀</param> privateBooleanfileUploadImage(stringTheFileName){boolges=false;stringfile="";file=fileLogoUrl.PostedFile.FileName;string[]end=newstring[]{"jpg","gif",& 阅读全文
posted @ 2008-11-12 12:59 叮叮猫的编程世界 阅读(270) 评论(0) 推荐(0) 编辑
摘要: ///<summary> ///根据文件夹路径得到文件路径下所有的文件 ///</summary> ///<paramname="pathtext"></param> publicvoidListFiles(stringpathtext){try{if(pathtext==null||pathtext.Equals("")){Response.Write("路径不能为空错误");}else{//得到文件名,目录 string[]filename=Directory.GetFiles(Se 阅读全文
posted @ 2008-11-12 12:54 叮叮猫的编程世界 阅读(382) 评论(0) 推荐(0) 编辑
  2008年11月6日
摘要: <scripttype="text/javascript">functiongettheValue(){varPriceNames=document.getElementsByName("thePriceName");//显示名称 varPrices=document.getElementsByName("thePrice");//单价 varMinSuns=document.getElementsByName("theMiSum");//购买的最少数量 varSunNums=document.getE 阅读全文
posted @ 2008-11-06 13:33 叮叮猫的编程世界 阅读(158) 评论(0) 推荐(0) 编辑
摘要: IFEXISTS(SELECT*FROMsysobjectsWHEREtype='P'ANDname='RoleMenu_ADD')BEGINPRINT'DroppingProcedureRoleMenu_ADD'DROPProcedureRoleMenu_ADDENDGOPRINT'CreatingProcedureRoleMenu_ADD'GOCREATEProcedureRoleMenu_ADD/*ParamList*/@RoleIDint,@MenuIDvarchar(5000)ASbegin--declare@RoleI 阅读全文
posted @ 2008-11-06 13:26 叮叮猫的编程世界 阅读(418) 评论(0) 推荐(0) 编辑
  2008年10月30日
摘要: 申明:这篇文章转载自 http://www.cnblogs.com/netguid/archive/2007/01/29/633306.html1. 数据库访问性能优化 数据库的连接和关闭 访问数据库资源需要创建连接、打开连接和关闭连接几个操作。这些过程需要多次与数据库交换信息以通过身份验证,比较耗费服务器资源。 ASP.NET中提供了连接池(Connection Pool)改善打开和关闭数据库对性能的影响。系统将用户的数据库连接放在连接池中,需要时取出,关闭时收回连接,等待下一次的连接请求。 连接池的大小是有限的,如果在连接池达到最大限度后仍要求创建连接,必然大大影响性能。因此,在建... 阅读全文
posted @ 2008-10-30 11:20 叮叮猫的编程世界 阅读(128) 评论(0) 推荐(0) 编辑
  2008年10月16日
摘要: usingSystem;usingSystem.Data;usingSystem.Configuration;usingSystem.Web;usingSystem.Web.Security;usingSystem.Web.UI;usingSystem.Web.UI.WebControls;usingSystem.Web.UI.WebControls.WebParts;usingSystem.Web.UI.HtmlControls;usingSystem.Net;usingSystem.Net.Sockets;usingSystem.Text;usingSystem.Collections;u 阅读全文
posted @ 2008-10-16 15:25 叮叮猫的编程世界 阅读(258) 评论(0) 推荐(0) 编辑