随笔分类 -  .Net, C#, Asp.net

上一页 1 2 3 4 5
Windows server 2008下查找 w3wp.exe对应的Appoolid
摘要:Cmd命令: c:\windows\system32\inetsrv\appcmd.exe list wpWP "8064" (applicationPool:BobGFDebug)WP "6036" (applicationPool:Microsoft Team Foundation Server Application Pool)WP "9012" (applicationPool:Share... 阅读全文
posted @ 2010-06-22 16:24 BobLiu 阅读(939) 评论(0) 推荐(0)
the server tag is not well formed 错误的另一种原因.
摘要:有时将项目迁到一台新装好的windows系统上再次编译时, 会遇到the server tag is not well formed 错误, 从网上搜来的帖子好多都指出重复双引号或控件缺少ID, 其实原来的项目是好的, 编译运行都没有问题, 但为什么还出现这个错误呢?经过查找, 终于发现, 因为安装的操作系统是英文版, 在控制面板->国家地区与语言选择里, 没有选择中国的相关选项, 默认还是... 阅读全文
posted @ 2010-05-04 16:29 BobLiu 阅读(2762) 评论(1) 推荐(0)
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.
摘要:遇到这个错误 Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. 请参考msdn文章来debug找出错误的地方: http://msdn.microsoft.com/en-us/library/system.data... 阅读全文
posted @ 2010-03-04 17:31 BobLiu 阅读(3029) 评论(0) 推荐(0)
转 C# , ASP.Net 中 关于 like in 实现参数化查询的问题
摘要:C# , ASP.Net 中 关于 like in 实现参数化查询的问题。2008-09-18 18:17对于 普通的 select等sql语句, 正常的参数化 语句 格式: select * from profile where EmployeeID= @EmployeeID for example: string loginString = "select * from profile wh... 阅读全文
posted @ 2009-12-03 14:09 BobLiu 阅读(3541) 评论(1) 推荐(2)
转 Convert.ToInt32与Int32.Parse区别及Int32.TryParse
摘要:表面上看,可见3个方法都实现了同样的效果!那么请看://string myString = "1234"; string myString = null; int myint = 0;myint = Convert.ToInt32(myString); Console.Write(myint+"\r\n");myint = Int32.Parse(myString); Console.Write(... 阅读全文
posted @ 2009-12-03 13:49 BobLiu 阅读(373) 评论(0) 推荐(0)

上一页 1 2 3 4 5