03 2009 档案
你如何看待死亡?
摘要:你如何看待死亡? How do you look on the death? 700) {this.resized=true; this.width=700; this.style.cursor='hand'; this.alt='点击在新窗口中打开';}" onclick="if(!this.resized) {return true;} else {window.open('http://u...
阅读全文
你会被表面的东西迷惑吗
摘要:你会被表面的东西迷惑吗? Would you be deluded into extrinsic evidence? 700) {this.resized=true; this.width=700; this.style.cursor='hand'; this.alt='点击在新窗口中打开';}" onclick="if(!this.resized) {return tru...
阅读全文
sql 根据根节点遍历所有叶子
摘要:不使用CTE也就是with因为限制太多,比如不能使用参数 declare @startId int select @startId = id from externalstatus where statusname = @rootStatusName declare @backtrace table(id int,lvl int) declare @id int set @id = ...
阅读全文
转:mssql里判断数据库对象是否存在的语句
摘要:1: --判断指定的数据库是否存在,存在则删除 2: if exists (select name from master..sysdatabases where name in ('db_name')) 3: drop database db_name 4: go 5: 6: --判断指定的存储过程是否存在,存在则删除 7: if ex...
阅读全文
sql由叶子节点回溯到根节点
摘要:declare @backtrace table(id int,lvl int) declare @id int set @id = 756 declare @lvl int set @lvl=0 insert @backtrace select id, @lvl from tblCallCode where id = @id while @@r...
阅读全文
LINQ体验(6)——LINQ to SQL语句之Join和Order By
摘要:LINQ体验(6)——LINQ to SQL语句之Join和Order By Join操作 适用场景:在我们表关系中有一对一关系,一对多关系,多对多关系等。对各个表之间的关系,就用这些实现对多个表的操作。 说明:在Join操作中,分别为Join(Join查询), SelectMany(Select一对多选择)和GroupJoin(分组Join查询)。 该扩展方法对两个序列中键匹配的元素进行i...
阅读全文
浅谈ASP.NET内部机制(三)
摘要:浅谈ASP.NET内部机制(三) 前言:当我们把页面中的数据包含在表单中发送到服务器的时候,数据到底是以什么形式发送的?服务器接受到提交的数据后是如何读取这些数据,又是如何要决定来引发事件的?我们怎么样才能让我们自定义的控件能够在服务器端触发事件?为什么服务器控件有的要实IPostBackEventHandler,IPostBackDataHandler?..... 大家已...
阅读全文
C#实现动态调用Windows DLL
摘要:部分代码来自于网络;废话不多说,上代码: 调用方法: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->object obj = WinDllInvoke("Kernel32.dll", "Beep", new object[] { 750, 300 }...
阅读全文
How to integrate custom security policy with Windows domain authentication in ASP.NET
摘要:Generally, the ASP.NET built in Windows domain authentication is not sufficient. For example, we often need to use Windows domain authentication with database information. Here is my example which ...
阅读全文