含羞草
好记性不如烂笔头
菜鸟先飞...
04 2007 档案
转: Simple ASP.NET 2.0 Tips and Tricks that You May (or may not) have Heard About (一些简单的、你可能已经知道或者不知道的ASP.NET 2.0技巧)
摘要:包括: Maintain the position of the scrollbar on postbacks Set the default focus to a control when the page loads Set the default button that is triggered when the user hits the enter key Locate nested controls easily Strongly-typed access to cross-page postback controls Strongly-typed access to Master Pages controls Validation groups Finding control/variable names while typing code 阅读全文
posted @ 2007-04-30 15:21 含羞草 阅读(342) 评论(0) 推荐(0)
Asp.net : 访问嵌套模版页中的控件
摘要:如果要访问的控件位于母版页的 ContentPlaceHolder 控件内部,必须首先获取对 ContentPlaceHolder 控件的引用,然后调用其 FindControl 方法获取对该控件的引用。 阅读全文
posted @ 2007-04-19 17:11 含羞草 阅读(1584) 评论(1) 推荐(0)
SQL Server 2005 : 服务器不允许远程客户端登录的解决办法
摘要:只在SQL Server 2005服务端安装在Windows XP和Windows Server 2003操作系统上时出现了这种问题,本机上可以正常登录,但远程客户端则无法登录。解决方法:在SQL Server 2005服务端所在机器的windows防火墙中添加端口例外,将1433端口设置为允许例外。 阅读全文
posted @ 2007-04-18 19:15 含羞草 阅读(1316) 评论(0) 推荐(0)
SQL Server 2005 : 清空数据库日志
摘要:日志文件满而造成SQL数据库无法写入文件时,可用两种方法: 方法一:清空日志。 1.打开查询分析器,输入命令 DUMP TRANSACTION 数据库名 WITH NO_LOG 2.再打开企业管理器--右键你要压缩的数据库--所有任务--收缩数据库--收缩文件--选择日志文件--在收缩方式里选择收缩至XXM,这里会给出一个允许收缩到的最小M数,直接输入这个数,确定就可以了。 另一种方法有一定的风险... 阅读全文
posted @ 2007-04-17 16:30 含羞草 阅读(6417) 评论(0) 推荐(0)
安装删除服务
摘要:C#服务: 安装服务: installutil 服务文件名 启动服务: net start 服务名 停止服务: net stop 服务名 删除服务: sc delete 服务名 C++服务: 安装服务: 服务文件名 -i 删除服务: 服务文件名 -u 阅读全文
posted @ 2007-04-09 12:03 含羞草 阅读(358) 评论(0) 推荐(0)