2010年11月4日
摘要: ICsharpCode.sharpZlib这个组件直接使用会出现解压缩中文时出现错误。所以需要更改一下作者的源代码。。。以下为版本0.86为例。1)在源代码中找到 ZipInputSteam.cs文件,打开它然后定位到 GetNextEntry()这个函数内。2)在GetNextEntry里面有一句代码是得到文件名的代码。string name = ZipConstants.ConvertToSt... 阅读全文
posted @ 2010-11-04 14:44 lock 阅读(1221) 评论(0) 推荐(0) 编辑
  2010年10月25日
摘要: 当你的导入程序工作在IIS,SQL 2005/2008 (X64)的环境下时,如果你遇上如下的错误提示Microsoft.Jet.OleDb.4.0 provider is not registered on the local machine解决这个问题只需要处理一下IIS的进程池,将你的网站的进程池设置为支持32位。 阅读全文
posted @ 2010-10-25 11:25 lock 阅读(248) 评论(0) 推荐(0) 编辑
  2010年7月8日
摘要: firefox下访问操作iframe里内容 Mozilla支持通过IFrameElmRef.contentDocument访问iframe的document对象的W3C标准,通过标准可以少写一个document,代码:var iObj = document.getElementById(‘iId‘).contentDocument; alert(iObj.getElemen... 阅读全文
posted @ 2010-07-08 13:22 lock 阅读(470) 评论(0) 推荐(0) 编辑
  2010年5月11日
摘要: 1. 我们在SQL 2008当中新建一个测试用表。create table employee (id int,name varchar(100))2.创建一个类型。create type emplyeetable as Table(id int,name varchar(100))这个类型同表的结构是一样的。生成后在 [DB]->Programmability->Types->U... 阅读全文
posted @ 2010-05-11 15:04 lock 阅读(424) 评论(1) 推荐(0) 编辑
  2010年4月27日
摘要: asp.net中使用jquery的validate来进入数据检验的时侯.一般采用以下方式.$(document).ready(function() { $.validator.setDefaults({ debug: false, onfocusout: false }); $.metadata.setType("attr", "validate"); $("form").validate();}... 阅读全文
posted @ 2010-04-27 14:12 lock 阅读(591) 评论(1) 推荐(0) 编辑
  2010年4月26日
摘要: ddl.SelectedIndex = ddl.Items.IndexOf(ddl.Items.FindByValue("Value"));ddl:dropdownlist的控件名value:选中的值. 阅读全文
posted @ 2010-04-26 16:43 lock 阅读(262) 评论(0) 推荐(0) 编辑
摘要: You can create a simple rule by doing something like this:And then applying this like so:Just change the contents of the 'addMethod' to validate your checkboxes.link|flaganswered Oct 27 '08 at 19:56Ma... 阅读全文
posted @ 2010-04-26 15:31 lock 阅读(1583) 评论(0) 推荐(0) 编辑
摘要: 今天博客开通.记录点东西在这里 阅读全文
posted @ 2010-04-26 13:38 lock 阅读(103) 评论(0) 推荐(0) 编辑