摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 体积{ class Program { static void Main(string[] args) { double tj,a,b,c; Console.WriteLine("请输入第一个数字:"); a = Convert.ToDouble(Console.ReadLine()); ... 阅读全文
posted @ 2012-11-05 10:30 Liu66~ 阅读(915) 评论(0) 推荐(0) 编辑
摘要: class ForEachTest{ static void Main(string[] args) { int[] fearray = new int[] { 0, 1, 2, 3 }; foreach (int i in fearray) { System.Console.WriteLine(i); } }}输出:0123 阅读全文
posted @ 2012-11-05 10:29 Liu66~ 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 在Visual Studio 2008中建立新文件时,会出现:“using System.Linq命名空间无法引用”解决方法:在解决方案上点击右键--添加引用--浏览---找到Microsoft.Net-SDK-CompactFramework-v3.5-WindowsCE-System.Xml.Linq.dll文件,然后点击确定。出现命名空间“System.Xml”中不存在类型或命名空间名称“Linq”(是缺少程序集引用吗?) 是什么回事? 直接把 using System.Linq; 和 using System.Xml.Linq;删除就不会出现这个错误了,如果项目的框架版本是.net . 阅读全文
posted @ 2012-11-05 10:28 Liu66~ 阅读(4561) 评论(0) 推荐(0) 编辑
摘要: <asp:Image runat="server" width="150" height="100" ImageUrl='<%#FormatImageURL(eval("PicPath"))%>'>/>//PicPath为数据库中存放图片的字段名,路径在代码中拼出来即可--------------------------------------------| id | UserName | Age | PicPath ||------------------------ 阅读全文
posted @ 2012-11-05 10:27 Liu66~ 阅读(280) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" ><head> <title>无刷新评论</title> <script type="text/javascript"> 阅读全文
posted @ 2012-11-05 10:26 Liu66~ 阅读(204) 评论(0) 推荐(0) 编辑
摘要: use 数据库goupdate 所有者.表名 set 字段 = replace(cast(字段 as varchar(8000)) , '值1','值2')注:值1为原数据 值2为要改成的数据 必须要有转换,否则会出现错误“函数 replace 的参数 1 的数据类型 ntext 无效。”。 阅读全文
posted @ 2012-11-05 10:24 Liu66~ 阅读(251) 评论(0) 推荐(0) 编辑
摘要: use 数据库名goEXEC sp_changeobjectowner '原表的所有者.表名',要改成的所有者 阅读全文
posted @ 2012-11-05 10:23 Liu66~ 阅读(164) 评论(0) 推荐(0) 编辑
摘要: function Newstop2(SortPath) dim rs,sql,NewsName,NewFlag set rs = server.createobject("adodb.recordset") sql="select top 4 * from Qianbo_News where Instr(SortPath,'"&SortPath&"')>0 order by id desc" rs.open sql,conn,1,1 if rs.eof then Response.Write &q 阅读全文
posted @ 2012-11-05 10:22 Liu66~ 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 本文列出了各种 80004005 错误信息、导致错误信息的最常见原因以及解决问题的疑难解答步骤。收到 80004005 错误的是 Active Server Pages 中的 Microsoft 数据访问组件 (MDAC),其中包括 Microsoft ActiveX 数据对象 (ADO)、OLE DB 以及远程数据服务 (RDS)。虽然本文假定您是在 Active Server Pages (ASP) 页中使用 ADO,但是导致错误的原因以及许多疑难解答步骤适用于任何使用 ODBC 进行数据访问的环境。更多信息:错误信息列表80004005 错误信息表示无法访问您的数据。此错误可以解释为“由 阅读全文
posted @ 2012-11-05 10:21 Liu66~ 阅读(349) 评论(0) 推荐(0) 编辑
摘要: <%set rs = server.createobject("adodb.recordset")sql="SELECT top 16 * FROM Qianbo_News order by id desc"rs.open sql,conn,1,1if rs.bof and rs.eof thenresponse.write "暂无新闻"elsei=1do while not rs.eof and i>0%><td height=20 align=left><%if i mod 2=0 then r 阅读全文
posted @ 2012-11-05 10:20 Liu66~ 阅读(195) 评论(0) 推荐(0) 编辑
摘要: 打开SQL Server 2000企业管理器, 会弹出 “SQLDMO还未注册,请重新运行SQL SERVER安装程序,或者与管理员联系”界面的解决方法:开始→运行:RegSvr32 sqldmo.dll然后重新打开SQL Server 2000企业管理器就可以使用了。 阅读全文
posted @ 2012-11-05 10:18 Liu66~ 阅读(430) 评论(0) 推荐(0) 编辑
摘要: var enabled = 0; today = new Date();var day; var date;if(today.getDay()==0) day = "星期日"if(today.getDay()==1) day = "星期一"if(today.getDay()==2) day = "星期二"if(today.getDay()==3) day = "星期三"if(today.getDay()==4) day = "星期四"if(today.getDay()==5) day = &qu 阅读全文
posted @ 2012-11-05 10:16 Liu66~ 阅读(315) 评论(0) 推荐(0) 编辑
摘要: 网站后台编辑器怎样才能兼容IE6、IE8 解决IE8不支持eWebEditor在线文本编辑器的方法如下: 1、首先找到eWebEditor编辑器所在的目录,然后搜索到editor.js文件,由于eWebEditor有很多个版本,所以editor.js文件所在的目录也有所不同,有的可能在Include目录下,有的可能在js目录下。 2、用记事本打开editor.js文件,找到如下代码: if (element.YUSERONCLICK) { eval(element.YUSERONCLICK + "anonymous()"); } 由于eWebEditor编辑器版本不同,有的 阅读全文
posted @ 2012-11-05 10:15 Liu66~ 阅读(1128) 评论(0) 推荐(0) 编辑
摘要: 方法一:主要代码CSS: filter : progid:DXImageTransform.Microsoft.AlphaImageLoader ( enabled=bEnabled , sizingMethod=sSize , src=sURL )属性:enabled : 可选项。布尔值(Bool... 阅读全文
posted @ 2012-11-05 10:13 Liu66~ 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 圆角让自适应屏幕宽度显示 阅读全文
posted @ 2012-11-05 10:12 Liu66~ 阅读(232) 评论(0) 推荐(0) 编辑
摘要: js替代marquee实现图片无缝滚动可能大家都碰到过,当marquee中滚动的是图片的时候,滚到终点的时候直接就跳回到起点了,而不像文字那样可以无缝滚动,下面介绍的是通过js来实现图片的无缝滚动。先了解一下下面这几个属性:innerHTML: 设置或获取位于对象起始和结束标签内的 HTMLscrollHeight: 获取对象的滚动高度。scrollLeft: 设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离scrollTop: 设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离scrollWidth: 获取对象的滚动宽度... 阅读全文
posted @ 2012-11-05 10:11 Liu66~ 阅读(36193) 评论(0) 推荐(1) 编辑
摘要: area不能独立出现, 必须嵌套在map中, map只作为area的容器:shape属性指明了区域的形状, coords指明了形状边界的几个点(左、上、右、下), href为导航到哪里的url<map name="Map"><area shape="rect" coords="890,50,947,74" href="javascript:window.external.AddFavorite('http://www.qdtwjy.com/','我的个人网站')" 阅读全文
posted @ 2012-11-05 10:09 Liu66~ 阅读(226) 评论(1) 推荐(1) 编辑
摘要: <body oncontextmenu="return false" onselectstart="return false" ondragstart="return false" onbeforecopy="return false" onmouseup=document.selection.empty() oncopy=document.selection.empty() onselect=document.selection.empty()></body>onselectstart=& 阅读全文
posted @ 2012-11-05 10:08 Liu66~ 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 选中FLASH,然后在属性中为FLASH添加以下两个参数即可:1、名字:wmode;值为:Transparent2、名字:wmode;值为:Opaque 阅读全文
posted @ 2012-11-05 10:07 Liu66~ 阅读(134) 评论(0) 推荐(0) 编辑
摘要: function StrLen(Str) if Str="" or isnull(Str) then StrLen=0 exit function else dim regex set regex=new regexp regEx.Pattern ="[^\x00-\xff]" regex.Global =true Str=regEx.replace(Str,"^^") set regex=nothing StrLen=len(Str) end ifend function注:[^\x00-\xff]:匹配双字节字符(包括汉字在内) 阅读全文
posted @ 2012-11-05 10:05 Liu66~ 阅读(204) 评论(0) 推荐(0) 编辑