可可果

哈利是一只有白点的黑狗

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2007年10月17日

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> Untitled Document ... 阅读全文
posted @ 2007-10-17 16:50 可可果 阅读(4561) 评论(2) 推荐(0) 编辑

摘要: 在Java中,boolean、byte、short、int、long、char、float、double这八种是基本数据类型,其余的都是引用类型。 “==”是比较两个变量的值是否相等,“equals”是比较两个对象变量所代表的对象的内容是否相等。 比较两个String类型时要用"equals" 阅读全文
posted @ 2007-10-17 16:49 可可果 阅读(912) 评论(0) 推荐(0) 编辑

摘要: 在方法中定义的内部类,如果要访问方法中定义的本地变量或方法的参数,则变量必须被声明final。 内部类可以声明为private或protected;还可以声明为abstract或final。 内部类可以声明为static的,但此时就不能再使用外部类的非static的成员变量和非static的成员方法; 非static的内部类中的成员不能声明为static的,只有在顶层类或static的内部类中才可... 阅读全文
posted @ 2007-10-17 16:47 可可果 阅读(433) 评论(0) 推荐(0) 编辑

摘要: 一、连接各种数据库方式速查表 下面罗列了各种数据库使用JDBC连接的方式,可以作为一个手册使用。 1、Oracle8/8i/9i数据库(thin模式) Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); String url="jdbc:oracle:thin:@localhost:1521:orcl"; //o... 阅读全文
posted @ 2007-10-17 16:46 可可果 阅读(166) 评论(0) 推荐(0) 编辑

摘要: Windows下JAVA用到的环境变量主要有3个,JAVA_HOME、CLASSPATH、PATH。下面逐个分析。 JAVA_HOME指向的是JDK的安装路径,如x:\JDK_1.4.2,在这路径下你应该能够找到bin、lib等目录。值得一提的是,JDK的安装路径可以选择任意磁盘目录,不过建议你放的目录层次浅一点,如果你放的目录很深,比如x:\XXXXXX\xxxxx\XXXX\xxxx\XXX... 阅读全文
posted @ 2007-10-17 16:46 可可果 阅读(200) 评论(0) 推荐(0) 编辑

摘要: 1 .安装前的准备工作 需要下载以下软件及插件: · Eclipse 3.2 SDK (下载地址:点这!) (汉化下载地址:点这!) · Sun JDK 1.5.0.09 (下载地址:点这!) · Lomboz(all-in-one 版本) (下载地址:点这!) · Apache-tomcat (1)Tomcat 所有的版本下载地址:htt... 阅读全文
posted @ 2007-10-17 16:44 可可果 阅读(919) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->private void BtnUpLoad_Click(object sender, System.EventArgs e) { string path=""; strin... 阅读全文
posted @ 2007-10-17 16:42 可可果 阅读(400) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 57) event.returnValue = false;"> 阅读全文
posted @ 2007-10-17 16:40 可可果 阅读(158) 评论(0) 推荐(0) 编辑

摘要: ascript src="../CssJs/date.js" charset="gb2312"> 如果被调用的javascript中有中文,就要加上charset="gb2312" 阅读全文
posted @ 2007-10-17 16:40 可可果 阅读(466) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->[JavaScript] 用JavaScript判断日期、数字、整数和特殊字符 作者:[转载] 文章来源:http://www.alixixi.com/ 更新时间:2006-1-19 如... 阅读全文
posted @ 2007-10-17 16:38 可可果 阅读(973) 评论(0) 推荐(0) 编辑

摘要: 把下面样式表放在table样式中: Table-layout:fixed; 把下面样式表放在table里的td样式中: word-wrap:break-word; 即可。 阅读全文
posted @ 2007-10-17 16:37 可可果 阅读(207) 评论(0) 推荐(0) 编辑

摘要: http://www.cnblogs.com/Files/siye1982/Date.rar 阅读全文
posted @ 2007-10-17 16:36 可可果 阅读(684) 评论(1) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->下面是写cookie 1 HttpCookie cookie = new HttpCookie("Info");//定义cookie对象以及名为Info的项 2 DateTime dt = Da... 阅读全文
posted @ 2007-10-17 14:53 可可果 阅读(165) 评论(0) 推荐(0) 编辑

摘要: 将 Cookie 的有效范围限制到域 默认情况下,Cookie 与特定的域相关联。例如,如果您的站点是www.contoso.com,那么当用户向该站点请求页面时,您编写的 Cookie 就被发送到服务器。(有特定路径值的 Cookie 除外,我在上一节刚刚解释过。) 如果您的站点有子域(例如 contoso.com、sales.contoso.com 和 support.contoso.... 阅读全文
posted @ 2007-10-17 14:52 可可果 阅读(145) 评论(0) 推荐(0) 编辑

摘要: 控制 Cookie 有效范围 默认情况下,一个站点的全部 Cookie 都一起保存在客户机上,而且所有这些Cookie 都会随着对该站点发送的请求一起发送到服务器,也就是说,站点的每个页面都能得到该站点的所有 Cookie.但有时候,您可能希望 Cookie 更具有针对性,这时,您可以通过两种方法设置 Cookie 的有效范围: 把 Cookie 的有效范围限制在服务器上的一个文件... 阅读全文
posted @ 2007-10-17 14:51 可可果 阅读(105) 评论(0) 推荐(0) 编辑

摘要: 多值 Cookie(子键) 以上示例为每个要保存的值(用户名、上次访问时间)都使用了一个 Cookie .您也可以在一个 Cookie 中保存多个名称/值对。名称/值对也称作“键”或“子键”,具体取决于您读取的内容。(如果您熟悉 URL 的结构,就会发现子键与其中的查询字符串非常相象。) 例如,如果不希望创建名为“userName”和“lastVisit”的两个单独的 Cookie,可以创... 阅读全文
posted @ 2007-10-17 14:51 可可果 阅读(140) 评论(0) 推荐(0) 编辑

摘要: 查看您的 Cookie 您可能会发现,了解创建 Cookie 的效果会对您很有帮助。而查看 Cookie 是比较容易的,因为它们都是文本文件,关键在于您能找到它们。不同的浏览器保存Cookie 的方式也不同。我将介绍 Internet Explorer 是如何保存 Cookie 的。如果您使用的是其他浏览器,请查看该浏览器的帮助,以了解有关 Cookie 处理方面的知识。 查看 C... 阅读全文
posted @ 2007-10-17 14:50 可可果 阅读(151) 评论(0) 推荐(0) 编辑

摘要: 编写 Cookie 您可以利用页面的 Response(英文)属性来编写 Cookie,该属性提供的对象使用户可以将信息添加到由页面向浏览器呈现的信息中。Response 对象支持一个名为Cookies(英文)的集合,您可以向其中添加要写入浏览器的 Cookie. 注意:下面要讨论的 Response 对象和 Request 对象分别是包含 HttpResponse(英文)和 Ht... 阅读全文
posted @ 2007-10-17 14:50 可可果 阅读(132) 评论(0) 推荐(0) 编辑

摘要: Cookie 的限制 在开始讨论 Cookie 的技术细节之前,我想先介绍一下 Cookie 应用的几条限制。大多数浏览器支持最多可达 4096 字节的 Cookie,如果要将为数不多的几个值保存到用户计算机上,这一空间已经足够大,但您不能用一个 Cookie 来保存数据集或其他大量数据。在实际应用中,您可能并不希望在 Cookie 中保存大量的用户信息,而只希望保存用户编号或其他标识符。... 阅读全文
posted @ 2007-10-17 14:49 可可果 阅读(141) 评论(0) 推荐(0) 编辑

摘要: 简介 Cookie 为 Web 应用程序保存用户相关信息提供了一种有用的方法。例如,当用户访问您的站点时,您可以利用 Cookie 保存用户首选项或其他信息,这样,当用户下次再访问您的站点时,应用程序就可以检索以前保存的信息。 本文概要介绍 Cookie 在 ASP.NET 应用程序中的应用,为您展示在 ASP.NET 中应用 Cookie 的技术细节,例如编写 Cookie、然... 阅读全文
posted @ 2007-10-17 14:48 可可果 阅读(131) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->using System; using System.Data; using System.Configuration; using System.Collections; using Syst... 阅读全文
posted @ 2007-10-17 14:48 可可果 阅读(382) 评论(0) 推荐(0) 编辑

摘要: Visual C#托管Socket的实现方法(一) (1) 作者:王天 发文时间:2003.11.19 Socket 就是套接字,它是网络编程中最常用遇到的概念和工具。在TCP/IP网络中,传送和接收数据就会经常使用到Socket,由于使用Socket能够在网络 上处理复杂数据,所以在各种网络应用程序中,涉及到数据传送和接收,一般都会使用Socket,可见要掌握网络编程,精... 阅读全文
posted @ 2007-10-17 14:47 可可果 阅读(371) 评论(0) 推荐(0) 编辑

摘要: 1,在DataGrid中添加选择按钮,并取出所选行中元素 eg: Private void DataGrid1_selectedIndexChanged(.........) { int i=this.DataGrid1.selectedIndex; //选定项的索引 string str01=((HyperLink)this.Da... 阅读全文
posted @ 2007-10-17 14:46 可可果 阅读(215) 评论(0) 推荐(0) 编辑

摘要: http://www.cnblogs.com/igtea/archive/2006/10/15/529708.html 一般情况下我们通常在一个页面中,结合页面事件处理模型,按顺序一步一步的声明各个处理过程。这就是所说的同步处理(Synchronous),我们可以 很方便的定义页面处理的顺序。同步处理虽然很方便,但在耗时高请求处理的时候就会暴露严重的问题,在一个高并发的网站生产服务器上,由于.ne... 阅读全文
posted @ 2007-10-17 14:46 可可果 阅读(141) 评论(0) 推荐(0) 编辑

摘要: FTP错误列表 这种错误跟http协议类似,大致是: 2开头--成功 3开头--权限问题 4开头--文件问题 5开头--服务器问题 110 Restart marker reply. In this case, the text is exact and not left to the particular implementation; it must read: MARK yyyy ... 阅读全文
posted @ 2007-10-17 14:45 可可果 阅读(333) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 public void OutPutExcel() 2 { 3 //定义文档类型、字符编码 4 Response.Clear(); 5 Resp... 阅读全文
posted @ 2007-10-17 14:44 可可果 阅读(1485) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->1 protected void DataGrid1_ItemDataBound(object sender, DataGridItemEventArgs e) 2 { 3 ... 阅读全文
posted @ 2007-10-17 14:44 可可果 阅读(203) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 2 //javascript函数 3 function SelectIsNullDelete() 4 { 5 var e; 6 ... 阅读全文
posted @ 2007-10-17 14:43 可可果 阅读(235) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 79 //选择改变的数在textbox上马上显示出来,textbox的前台代码为 80 30条记录 81 阅读全文
posted @ 2007-10-17 14:42 可可果 阅读(265) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> //javascript function SelectAll(Items) { var i; ... 阅读全文
posted @ 2007-10-17 14:41 可可果 阅读(225) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 public void ToExcel(System.Web.UI.Control ctl, string c,string keyword) 2 { 3 ... 阅读全文
posted @ 2007-10-17 14:40 可可果 阅读(163) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 //取得日期间隔 2 public static int DateDiff(string t1) 3 { 4 ... 阅读全文
posted @ 2007-10-17 14:39 可可果 阅读(203) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 protected void ProductCreate_dg_ItemDataBound(object sender, DataGridItemEventArgs e) 2 ... 阅读全文
posted @ 2007-10-17 14:38 可可果 阅读(293) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> /* */ /// /// 与前台页面的一个JavaScript方法配合,完成了DataGrid控件的... 阅读全文
posted @ 2007-10-17 14:37 可可果 阅读(220) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 /// 2 /// 选择前三十条 3 /// 4 /// 要绑定的DataGrid控件名 5 ... 阅读全文
posted @ 2007-10-17 14:36 可可果 阅读(1098) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 public void Bind(DataGrid dataGridName, string t, string submit, string create, string... 阅读全文
posted @ 2007-10-17 14:35 可可果 阅读(275) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 /// 2 /// 生成行业排名前台页面用的DataTable 3 /// 4 /// 如果是"1"就是全部行业的... 阅读全文
posted @ 2007-10-17 14:34 可可果 阅读(493) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 /// 2 /// 替换模板中的文字的方法 3 /// 4 /// 要替换为的内容 5 /// ... 阅读全文
posted @ 2007-10-17 14:33 可可果 阅读(449) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 private string ToRead(System.Web.UI.Control ctl) 2 { 3 // HttpContext.Curren... 阅读全文
posted @ 2007-10-17 14:32 可可果 阅读(194) 评论(0) 推荐(0) 编辑

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> 1 //从网页中读取结果数,返回搜索结果数 2 public string ReturnCount(stringkeyword,stringinfoclass) 3 { 4 tr... 阅读全文
posted @ 2007-10-17 14:31 可可果 阅读(514) 评论(0) 推荐(0) 编辑