摘要: After tracing I finally found why the application is so slow. It really used too much time to open a database connection for logging, actually is existed. This function is wrapped in an dll. Although ... 阅读全文
posted @ 2008-12-25 15:09 helloworld22 阅读(181) 评论(0) 推荐(0) 编辑
摘要: http://www.codeproject.com/KB/aspnet/DisableSubmitButton.aspx public class WebForm1 : System.Web.UI.Page { protected System.Web.UI.WebControls.Button Button1; private void Page_Load(object sender, Sys... 阅读全文
posted @ 2008-12-25 14:55 helloworld22 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Permissions for the Event log are driven through the registry. Each event log has an entry in the registry under the following key: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog To al... 阅读全文
posted @ 2008-09-11 15:24 helloworld22 阅读(1793) 评论(0) 推荐(0) 编辑
摘要: The error I am getting is: Cannot Open Backup Device 'path_to_file'. Operating system error 5(error not found). 问题是因为帐号network service没有操作磁盘和文件夹的权限,加上就可以了。或者将service运行在本地帐号下。 The problem was the servi... 阅读全文
posted @ 2008-09-11 12:41 helloworld22 阅读(850) 评论(0) 推荐(0) 编辑
摘要: 希望能帮到遇到同样问题的人。 这周遇到一个问题就是本地cookie会被ie禁用,昏倒,我都加了trust site了还是没有用。 搞了好久发现应该是zone里面的一个节点1A10的数值不知道什么时候变成了0x00000003,应该是0x00000000。 我倒阿。 还有遇到一个问题,就是启动调试的时候"Error while trying to run project: Unable to st... 阅读全文
posted @ 2008-09-05 16:57 helloworld22 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 生成repeater分页的页码,可以想datagrid一样分页。需要配合PagedDataSource 。 阅读全文
posted @ 2008-06-17 17:04 helloworld22 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 用httpmodule自动加密解密query string查询字符串 阅读全文
posted @ 2008-06-06 17:46 helloworld22 阅读(1411) 评论(3) 推荐(0) 编辑
摘要: 照着UML图,随便写了个Abstract Factory模式 Load assembly的时候有点不一样,因为那个目录很怪很长,是个临时目录,所以我用location得到了它。很奇怪阿。怎么放那里,看来vs2008是不一样阿。 string location = Assembly.GetAssembly(Type.GetType(factoryName)).Location; fac... 阅读全文
posted @ 2008-02-13 17:39 helloworld22 阅读(460) 评论(2) 推荐(0) 编辑