希望在明天

如果,你没有耐心等待成功的到来,那么,你将用一生的耐心去面对失败。

2007年5月7日

VS2005编译的bug

摘要: 使用VS2005开发的ASP.NET程序,页面上包含用户控件,在打开页面时出现错误:Could not load file or assembly 'App_Web_ddwssisl, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find t... 阅读全文

posted @ 2007-05-07 21:53 蒜头 阅读(239) 评论(0) 推荐(0) 编辑

js中为一个对象添加事件的正确方法

摘要: 例如:在js中,为一个button添加onclick事件可以: button.conclick = ClickEvent; ClickEvent是一个函数。这样在ClickEvent没有参数的时候是可以的,但在ClickEvent需要一个参数的时候,就不行了。这时可以这样添加: button.attachEvent("onclick", function(){ClickEvent(event, '... 阅读全文

posted @ 2007-05-07 21:37 蒜头 阅读(1073) 评论(0) 推荐(0) 编辑

2007年3月31日

同一页面放置多个UpdatePanel

摘要: ScriptManager添加EnablePartialRending属性: 所有的UpdatePanel需要设置UpdateMode="Conditional": ... 阅读全文

posted @ 2007-03-31 17:40 蒜头 阅读(2398) 评论(0) 推荐(0) 编辑

SQL 2005 的 OVER Clause

摘要: sql 2005 里over 子句解析 阅读全文

posted @ 2007-03-31 17:27 蒜头 阅读(1171) 评论(2) 推荐(0) 编辑

2007年3月28日

CLR Stored Procedure

摘要: C# 存储过程 阅读全文

posted @ 2007-03-28 16:51 蒜头 阅读(367) 评论(0) 推荐(0) 编辑

2007年3月24日

SQL Server 2005 全文检索

摘要: SQL 2005 全文检索 阅读全文

posted @ 2007-03-24 13:01 蒜头 阅读(2225) 评论(0) 推荐(0) 编辑

2007年2月23日

禁用Form的自动完成功能

摘要: 这就是自动完成功能: 在form中添加autocomplete="off",可以禁用form的自动完成功能。 阅读全文

posted @ 2007-02-23 18:33 蒜头 阅读(341) 评论(0) 推荐(0) 编辑

禁用aspx页面的客户端缓存

摘要: 默认情况下,IE打开一个网页,会在本地进行缓存,这样是为了减少访问服务器的次数提高性能。但有时这也给我们带来了弊端,比如修改信息的页面,在提交修改后,再次打开次页面,因为URL并没有改变,因此IE会读取本地缓存,页面显示的仍然是原始信息,这种情况特别容易出现在弹出对话框或窗口进行修改的方式。在ASP.NET中可以在页面中加入以下内容: 这样,就使该页面不在客户端进行缓存。 阅读全文

posted @ 2007-02-23 18:13 蒜头 阅读(721) 评论(0) 推荐(0) 编辑

XHTML不支持height=100%

摘要: 当页面上存在XHTML的声明时: 如果页面上存在iframe,即使添加了height=100%,iframe也不会填充页面。只有移出这个doctype的声明,iframe才会达到预期的效果。填充页面。例如: Default 阅读全文

posted @ 2007-02-23 18:03 蒜头 阅读(732) 评论(2) 推荐(0) 编辑

使模式对话框显示在IE窗口的中间

摘要: 默认情况下,调用showModalDialog显示的模式对话框是在屏幕的中间,通过下面的代码可以使对话框显示在IE窗口的中央,无论IE窗口的大小和位置。 var wWidth=800;var wHeight=600;var wLeft = 0;var wTop = 0;function GetDialogParams(width, height){ var mLeft = 0; va... 阅读全文

posted @ 2007-02-23 17:35 蒜头 阅读(613) 评论(0) 推荐(0) 编辑

JavaScript 浮点数计算

摘要: 在jacascript中直接对两个浮点数相加得到的结果不精确。通过这个方法可以解决此问题: function floatAdd(arg1,arg2) { var r1,r2,m; try { r1=arg1.toString().split(".")[1].length; } catch(e)... 阅读全文

posted @ 2007-02-23 17:02 蒜头 阅读(1848) 评论(2) 推荐(0) 编辑

2007年1月13日

VS 2005 SP1 安装错误

摘要: 已经设置安装时出现以下错误:不知何故? 阅读全文

posted @ 2007-01-13 11:14 蒜头 阅读(298) 评论(1) 推荐(0) 编辑

2007年1月10日

修改远程桌面的连接数

摘要: 在使用远程桌面登录的时候,一台机器默认情况下只允许3个用户同时登录。这很不方便。在管理工具的终端服务配置里可以看到默认的连接数,但是不能修改。 要想修改必须安装终端服务器,在添加删除程序中,添加删除Windows组件,选择终端服务器,安装后就可以修改这里的连接数了。 注意:在修改后,同一个用户名不能同时进行登录了。在这里取消每个用户一个会话的选项。 这方法只适用与Server 2003 阅读全文

posted @ 2007-01-10 22:30 蒜头 阅读(3518) 评论(2) 推荐(0) 编辑

2006年12月27日

You do not have permissions to open this file on Excel Services

摘要: You do not have permissions to open this file on Excel Services 阅读全文

posted @ 2006-12-27 16:56 蒜头 阅读(736) 评论(0) 推荐(0) 编辑

2006年12月25日

Search List Items in SharePoint Portal Server

摘要: 搜索自定义列表中的条目 阅读全文

posted @ 2006-12-25 18:57 蒜头 阅读(239) 评论(0) 推荐(0) 编辑

2006年12月22日

SharePoint 2007 Form 验证

摘要: SharePoint 2007 Form 验证 阅读全文

posted @ 2006-12-22 15:12 蒜头 阅读(719) 评论(1) 推荐(0) 编辑

2006年11月22日

WSS 3.0 的一个Bug

摘要: 当没有建立任何一个Web Application时,进入Create Site Collection会得到一个脚本错误。 selectIndex 值为-1。 阅读全文

posted @ 2006-11-22 14:57 蒜头 阅读(205) 评论(0) 推荐(0) 编辑

2006年11月1日

Portal Server Query Service 不能查询图片

摘要: 最近在Web Part中调用Portal Server Query Service对站点内容进行查询,发现不能查询到Picture Library中的图片。即使在Protal的站点里查询也不行,但其他内容都可以查询到。经过一番搜索,得知是没有安装SP2造成的。还有几点是必须注意的:1、数据库必须安装全文索引。2、安装SPS SP2之前,必须安装WSS SP2。3、安装完SP2,已经存在的Porta... 阅读全文

posted @ 2006-11-01 22:47 蒜头 阅读(254) 评论(0) 推荐(0) 编辑

为时已晚!

摘要: 刚刚收到微软赠送的Windows Vista RC1安装盘,但是这个月马上就要发布正式版了,而且现在也有Pre-RTM版本的,不知道这个还有什么用处!看来只能留作纪念了。不知道有没有收藏价值。呵呵。 阅读全文

posted @ 2006-11-01 17:38 蒜头 阅读(193) 评论(0) 推荐(0) 编辑

2006年10月31日

调用SharePointPortalServer Query service

摘要: 调用SharePointPortalServer Query service 阅读全文

posted @ 2006-10-31 21:19 蒜头 阅读(395) 评论(0) 推荐(0) 编辑

2006年9月21日

The application domain in which the thread was running has been unloaded.

摘要: VS2005抛出“The application domain in which the thread was running has been unloaded.”异常信息,不知什么原因。 阅读全文

posted @ 2006-09-21 21:20 蒜头 阅读(533) 评论(0) 推荐(0) 编辑

Access is denid

摘要: 在SharePoint Central Administration中扩展一个站点,操作失败,并出现“Access is denid。”信息。多次从新安装WSS仍未解决! 阅读全文

posted @ 2006-09-21 21:15 蒜头 阅读(195) 评论(0) 推荐(0) 编辑

IIS error

摘要: It is not possible to run two different versions of ASP.NET in the same IIS process. Please use the IIS Administration Tool to reconfigure your server to run the application in a separate process. IIS... 阅读全文

posted @ 2006-09-21 21:13 蒜头 阅读(200) 评论(0) 推荐(0) 编辑

WSS 2.0 don't like DNN 4.x

摘要: DNN 4.x 不能与WSS共同存在一个站点中. 阅读全文

posted @ 2006-09-21 19:15 蒜头 阅读(222) 评论(0) 推荐(0) 编辑

2006年9月19日

JavaScript版Trim()和Email Validation

摘要: // 阅读全文

posted @ 2006-09-19 14:51 蒜头 阅读(1084) 评论(1) 推荐(0) 编辑

不能远程连接SQL Server 2005

摘要: 今天发现,局域网中的其他机器,不能连接我本机的SQL Server 2005,尽管我已经在Surface Area Configuration中,更改为Local and remote connections.后来发现是我开启防火墙的原因,因为防护墙阻挡。应该开启SQL Server所使用的端口1433,这样以后,就可以正常连接了。 阅读全文

posted @ 2006-09-19 14:36 蒜头 阅读(906) 评论(0) 推荐(0) 编辑

2006年7月16日

Team Foundation Server Proxy 初体验

摘要: Team Foundation Server Proxy 安装配置 阅读全文

posted @ 2006-07-16 23:28 蒜头 阅读(3582) 评论(0) 推荐(0) 编辑

2006年7月1日

WSS引发Debugging is not supported under current trust level settings错误完全解决

摘要: 安装TFS后,WSS引发Debugging is not supported under current trust level settings异常 阅读全文

posted @ 2006-07-01 20:11 蒜头 阅读(2046) 评论(0) 推荐(0) 编辑

青藏铁路通车了!

摘要: 青藏铁路通车了!祝贺一下! 阅读全文

posted @ 2006-07-01 19:29 蒜头 阅读(337) 评论(2) 推荐(0) 编辑

未能访问CDO.Message对象

摘要: .Net发送邮件碰到“未能访问CDO.Message对象“异常。 阅读全文

posted @ 2006-07-01 00:55 蒜头 阅读(3501) 评论(4) 推荐(0) 编辑

导航