07 2010 档案
asp.net的Login.aspx.cs出错解决办法
摘要:帐户登录界面的文件叫Login.aspx,后台代码为Login.aspx.cs在VS.NET 2005下测试通过,可发布后,在IIS下运行,则有如下错误提示。Description: An error occurred during the compilation of a resource required to service this request. Please review the f...
阅读全文
简单两句话解决退出框架页 IE后退无效
摘要://前提 要清空session然后在框架页加判断再加上如下两句话 实现 退出框架页 IE后退无效 的功能<title>框架页面 <% Response.Expires = 0; Response.Cache.SetNoStore(); %> </title>
阅读全文
SQL 分页存储过程
摘要:declare @pc int declare @c int exec SP_SqlFenYe @tblName='DetailedInfo',@fldName='*',@pageSize=10,@page=1,@fldSort='TJtime',@ID='ID', @Sort=0,@strCondition='len(ID)=2', @pageCount=@pc out , @Counts=...
阅读全文
日期控件
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->日历控件
阅读全文
SQL Case 的应用
摘要:create table test(Date varchar(50) null, Result varchar(50) null) insert into test values('1900-1-1','胜') insert into test values('1900-2-1','胜') insert into test values('1900-1-1','负') insert into ...
阅读全文
sql中case when then使用实例
摘要:TABLE [Test] ( [id] [int] IDENTITY (1, 1) NOT NULL , [name] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [subject] [nvarchar] (50) COLLATE Chinese_PRC_CI_AS NULL , [Source] [numeric](18, 0) NULL ...
阅读全文
SQL利用Case When Then多条件判断SQL 语句
摘要:Select top 100 State,JoinState, (case when State=1 and Joinstate=0 then 2 when State=1 and JoinState=1 then 1 else 0 end) as usestate from UserInfo (2) select ID,Username,namer=(case when(sc...
阅读全文