摘要: 报“服务器应用程序不可用”需要重新注册下.netframework2.0C:\windows\microsoft.net\framework\2.0.50727\aspnet_regiis.exe -i 阅读全文
posted @ 2009-10-05 20:16 waynecn 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 1. 安装数据库,并把原数据库移植过来,基本上不会出现问题;2. 安装IIS,配置网站,可能会遇到以下问题(注意用的是.netframeword 2.0, 1.0应该没问题);1)打开站点网页提示Service Unavailable字样,可能是Windows 2003的补丁没有打全,请将ServicePack2打上;2) 打开站点htm页面可以正常显示,无法打开aspx:打开IIS->We... 阅读全文
posted @ 2009-10-05 10:53 waynecn 阅读(199) 评论(0) 推荐(0) 编辑
摘要: import java.io.IOException;import org.apache.lucene.analysis.standard.StandardAnalyzer;import org.apache.lucene.document.Document;import org.apache.lucene.document.Field;import org.apache.lucene.index... 阅读全文
posted @ 2009-08-25 09:06 waynecn 阅读(280) 评论(0) 推荐(0) 编辑
摘要: updatemode有两个可选项: always/conditional当updatepanel外的控件和updatepanel trigger集合postback属性设定的控件(包括updatepanel内的控件)产生一个postback的时候,不管updatepanel的updatemode属性值为什么样的情况,updatepanel 都会被update.所以,updatepanel的upda... 阅读全文
posted @ 2009-08-04 01:14 waynecn 阅读(514) 评论(0) 推荐(0) 编辑
摘要: Cookies用于存储特定用户信息,它提供了Web程序中一种有用的方式。多年以来,JavaScript开发人员已经进行了有关cookie的大量工作。同样,ASP.NET通过System.Web空间名称也提供了cookie的访问。虽然你不应该使用cookie来存储一些敏感性的数据,但是,它们是处理锁细数据的一个极好的选择,比如颜色参数选择或者最后一次访问日期。传递cookiescookie是存储在客... 阅读全文
posted @ 2009-08-03 01:49 waynecn 阅读(419) 评论(0) 推荐(0) 编辑
摘要: I installed the ajax control toolkit, the reorder list works fine, I can add items, but cannot find a way to edit the items.How can I enable users to edit the item?just add a button with CommandNameCo... 阅读全文
posted @ 2009-08-01 16:13 waynecn 阅读(118) 评论(0) 推荐(0) 编辑
摘要: I'm having a problem withcoding a LINQ to SQL query.In TSQL, I would use the following:SELECT BarrierTypeKey, DescriptionFROM dbo.BarrierTypes WHERE BarrierTypeKey NOT IN (SELECT DISTINCT BarrierTypeK... 阅读全文
posted @ 2009-08-01 14:21 waynecn 阅读(666) 评论(0) 推荐(0) 编辑
摘要: <script language="javascript" type="text/javascript">function EnterTextBox(param1,param2) { if (event.keyCode == 13 && document.getElementById(param1).value != "") { event.keyCode = 9; e... 阅读全文
posted @ 2009-07-30 00:18 waynecn 阅读(493) 评论(0) 推荐(0) 编辑
摘要: Imports Lucene.Net.Analysis.StandardImports Lucene.Net.AnalysisImports Lucene.Net.IndexImports Lucene.Net.DocumentsImports System.IOImports Lucene.Net.SearchImports Lucene.Net.QueryParsersPartial Clas... 阅读全文
posted @ 2009-07-13 02:21 waynecn 阅读(568) 评论(0) 推荐(0) 编辑
摘要: Web应用程序来说,发生不可预知的错误和异常在所难免,我们必须为Web程序提供错误处理机制。当错误发生时,我们必须做好两件事情:一是将错误信息记录日志,发邮件通知网站维护人员,方便技术人员对错误进行跟踪处理;二是以友好的方式提示最终用户页面发生了错误,而不能将未处理的错误信息显示给用户。 让我们想想,ASP.NET为我们提供了几种错误处理机制?如果同时使用他们是不是有一定的优先级?.NET提供了四... 阅读全文
posted @ 2009-06-21 22:00 waynecn 阅读(340) 评论(0) 推荐(0) 编辑