摘要: <scriptlanguage="JavaScript"><!--varg_selProvince;varg_selCity;varProvinces=newArray(newArray("110000","北京市"),newArray("120000","天津市"),newArray("130000","河北省"),newArray("140000","山西省"),newArr... 阅读全文
posted @ 2006-07-29 09:22 PeterLin88 阅读(2500) 评论(0) 推荐(0) 编辑
摘要: function calendar(date) { // If no parameter is passed use the current date. if(date == null) date = new Date(); day = date.getDate(); month = date.getMonth(); year = date.getFullYear(); months = new ... 阅读全文
posted @ 2006-07-13 16:22 PeterLin88 阅读(648) 评论(0) 推荐(0) 编辑
摘要: <input type=button value=剪切 onclick=document.execCommand('Cut')><input type=button value=拷贝 onclick=document.execCommand('Copy')><input type=button value=粘贴 onclick=document.execCommand... 阅读全文
posted @ 2006-07-10 16:55 PeterLin88 阅读(8988) 评论(3) 推荐(1) 编辑
摘要: meta是用来在HTML文档中模拟HTTP协议的响应头报文。meta标签用于网页的<head>与</head>中,meta标签的用处很多。meta的属性有两种:name和http-equiv。name属性主要用于描述网页,对应于content(网页内容),以便于搜索引擎机器人查找、分类(目前几乎所有的搜索引擎都使用网上机器人自动查找meta值来给网页分类)。这其中最重要的是... 阅读全文
posted @ 2006-07-08 17:38 PeterLin88 阅读(1909) 评论(0) 推荐(0) 编辑
摘要: ASP.NET WEB FORMS 给开发者提供了极好的事件驱动开发模式。然而这种简单的应用程序开发模式却给我们带来了一些小问题,举个例子,在传统的ASP应用程序中,你能够通过POST方法很容易的把一个值或多个值从一个页面传送到另一个页面(request()/request.form()/request.querystring()),用同样的方法在ASP.NET中实现有点麻烦。在这里,通过其他方式... 阅读全文
posted @ 2006-07-05 16:09 PeterLin88 阅读(757) 评论(0) 推荐(0) 编辑
摘要: HTML元素的Name属性在页面中可以起那么一点ID的作用,因为在DHTML对象树中,我们可以使用document.getElementsByName来获取一个包含页面中所有指定Name元素的对象数组。 要是页面中有n(n>1)个HTML元素的ID都相同了怎么办?在DHTML对象中怎么引用他们呢?如果我们使用ASPX页面,这样的情况是不容易发生的,因为aspnet进程在处理aspx页面时根本... 阅读全文
posted @ 2006-07-01 16:57 PeterLin88 阅读(34186) 评论(2) 推荐(0) 编辑
摘要: 本文摘自:http://www.cnitblog.com/yemoo/archive/2006/06/17/12421.html注意点:1,两个S都要小写!2,属于String对象的方法。 3,索引下标从0开始4,返回一个从start开始到end的字符串,但不包含end索引位置的字符。substring方法返回位于 String 对象中指定位置的子字符串。 strVariable.substrin... 阅读全文
posted @ 2006-06-30 18:32 PeterLin88 阅读(30833) 评论(5) 推荐(0) 编辑
摘要: The easiest way to do this is to use an overload of the Serialize method. -- StringWriter sw=new StringWriter();    XmlTextWriter tw=new XmlTextWriter(sw);       XmlSeria... 阅读全文
posted @ 2005-04-10 10:53 PeterLin88 阅读(1513) 评论(3) 推荐(0) 编辑
摘要: 摘自http://www.codeproject.com a struct is implicitly sealed, a class isn't. a struct can't be abstract, a class can. a struct can't call : base() in its constructor whereas a class with no ... 阅读全文
posted @ 2005-03-05 02:29 PeterLin88 阅读(2004) 评论(1) 推荐(0) 编辑
摘要: 在C#中,有很多人认为这两个方法"Convert.Int32(string)、Int32.Parse(string)"是同样的,因为它们都是把String type 转换成Int type。但经过在VS中测试,才知道有区别的。Convert.Int32(null)返回0,而Int32.Parse(null)则抛出个异常!还是多加实践为重。 阅读全文
posted @ 2005-02-27 23:16 PeterLin88 阅读(1289) 评论(3) 推荐(0) 编辑