11 2008 档案
今天写的一个存储过程
摘要:begincreatetable#table(theIDintidentity(1,1),PriceNamevarchar(1000),theDatedatetime,Pricesvarchar(1000),theCTIDsvarchar(500))declare@MyDatedatetimeDECLAREmycursorCURSORFOR--创建一个游标selectdistinctTicketDatefromConceTablewhereTicketID=5OPENmycursorFETCHNEXTFROMmycursorINTO@MyDateWHILE@@FETCH_STATUS=0BEG 阅读全文
posted @ 2008-11-28 11:02 叮叮猫的编程世界 阅读(84) 评论(0) 推荐(0) 编辑
遍历文件下所有文件
摘要: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 叮叮猫的编程世界 阅读(94) 评论(0) 推荐(0) 编辑
C# 遍历文件夹加载到DataSet里面
摘要:///<summary> ///根据文件夹路径得到文件路径下所有的文件 ///</summary> ///<paramname="pathtext"></param> //publicvoidListFiles(stringpathtext) //{ //try //{ //if(pathtext==null||pathtext.Equals("")) //{ //Response.Write("路径不能为空错误"); //} //else //{ ////得到文件名,目录 //stri 阅读全文
posted @ 2008-11-19 10:26 叮叮猫的编程世界 阅读(205) 评论(0) 推荐(0) 编辑
在线QQ 以及MSN 阿里旺旺 雅虎在线 等调用 转载自 http://hi.baidu.com/gaoqunjian/blog/item/580293d914d000ee38012ff3.html
摘要: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 叮叮猫的编程世界 阅读(419) 评论(0) 推荐(0) 编辑
C#遍历一个文件夹下的所有文件夹
摘要: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 叮叮猫的编程世界 阅读(157) 评论(0) 推荐(0) 编辑
C# 一个图片上传的简单方法
摘要:///<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 叮叮猫的编程世界 阅读(280) 评论(0) 推荐(0) 编辑
WEB遍历文件夹下所有的文件(不遍历文件夹)
摘要:///<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 叮叮猫的编程世界 阅读(389) 评论(0) 推荐(0) 编辑
一段JS
摘要:<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 叮叮猫的编程世界 阅读(159) 评论(0) 推荐(0) 编辑
一个很复杂SQL存储过程的编写
摘要: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 叮叮猫的编程世界 阅读(425) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示