zwei1121

博客园 首页 新随笔 联系 订阅 管理

2007年7月20日 #

摘要: function EvaluatePassword(word){ if (word == "") { return 0; } else if (word.length ");} 阅读全文
posted @ 2007-07-20 17:40 zwei 阅读(189) 评论(0) 推荐(0) 编辑

2007年6月29日 #

摘要: insert into HelpClass( ClassID,ClassName,ParrentClassID,RootID,ClassOrder,ClassState) (select (select IsNUll(max(classid),0)+1 as b from helpclass),'66',0,0,0,1)SELECT Province as Province,City as Cit... 阅读全文
posted @ 2007-06-29 17:08 zwei 阅读(168) 评论(0) 推荐(0) 编辑

2007年6月22日 #

摘要: justinw,Clingingboy,dannyr,menkan,Silverlight,RChen,tjvictor,idiorlaiwen,9527,it1630http://blog.sina.com.cn/u/53d35ed40100005acen123/archive/2005/12/23/559982.aspxhttp://ffdshow.faireal.net/mirror/ffm... 阅读全文
posted @ 2007-06-22 17:18 zwei 阅读(168) 评论(0) 推荐(0) 编辑

2007年6月20日 #

摘要: 开发中可以说几乎随时会涉及到字符串处理,本人觉得很有必要把平时遇到的问题和大家一起讨论,如果大家有好的见解和心得请留言和大家分享。 1.Convert.ToInt32与Int32.Parse的恩恩怨怨2.Split的3种用法3.@"abc"和"abc"区别在那里4.保留2位有效小数及四舍五入5.url传递中文的解决方案6.把123456789转换为12-345-6789的3种方法7.交换两个指定位... 阅读全文
posted @ 2007-06-20 11:27 zwei 阅读(263) 评论(0) 推荐(0) 编辑

2007年6月18日 #

摘要: ORACLE段: 首先在ORACLE建立PACKAGE和PACKAGE BODY,将在这里面定义函数和存储过程返回结果集。 1:建立PACKAGE: CREATE OR REPLACE package SCOTT.pk_wt is type mytype is ref cursor; procedure p_wt(mycs out mytype); function f_get(str in va... 阅读全文
posted @ 2007-06-18 19:40 zwei 阅读(276) 评论(0) 推荐(0) 编辑

2007年5月25日 #

摘要: 在ASP.NET AJAX中如何判断浏览器及计算其宽高 function getClientBounds() { var clientWidth; var clientHeight; switch(Sys.Browser.agent) { ... 阅读全文
posted @ 2007-05-25 09:19 zwei 阅读(317) 评论(0) 推荐(0) 编辑

2007年5月23日 #

摘要: Using PageMethods to access Session data Here is one of the samples I was asked for at TechEd last week. How to access session state data from the browser. There are two C# methods in the page. On... 阅读全文
posted @ 2007-05-23 13:31 zwei 阅读(247) 评论(0) 推荐(0) 编辑

摘要: PageMethods介绍原文地址:http://metasapiens.com/PageMethods/intro.aspx 在简单的 HTML 页面和 ASP.NET 页面中链接一个网页都非常容易。实际链接页面时, 传递正确的叁数, 并且转换这些叁数, 却是有一点不同的。 问题 让我们做一个简单的例子。你想要访问一个显示客户信息的页面。页面需要一个customer ID的参数。我们说这个cus... 阅读全文
posted @ 2007-05-23 13:30 zwei 阅读(1690) 评论(0) 推荐(0) 编辑

摘要: 如何让网页中的图片等比例缩放呢,我参考了一些代码并自己写了个图片缩放的脚本,可以点击放大,同时用鼠标滑轮自由缩放,希望提出不同意见。 首先看看resizeimg函数的源代码: function resizeimg(ImgD,iwidth,iheight) { var image=new Image(); image.... 阅读全文
posted @ 2007-05-23 11:20 zwei 阅读(648) 评论(0) 推荐(0) 编辑

2007年5月16日 #

摘要: 1.文本框焦点问题onBlur:当失去输入焦点后产生该事件onFocus:当输入获得焦点后,产生该文件Onchange:当文字值改变时,产生该事件Onselect:当文字加亮后,产生该文件 点击时文字消失,失去焦点时文字再出现 2.网页按钮的特殊颜色 3.鼠标移入移出时颜色变化 4.平面按钮 5.按钮颜色变化 6.平面输入框 7.使窗口变成指定的大小 8.使文字上下滚动共和国 9.... 阅读全文
posted @ 2007-05-16 18:48 zwei 阅读(304) 评论(0) 推荐(0) 编辑