摘要: Copy 002.jpg/b + 001.txt/a 003.jpg 阅读全文
posted @ 2012-02-09 10:53 biubiubiu 阅读(623) 评论(0) 推荐(0) 编辑
摘要: DBCC CHECKIDENT('表名', RESEED, 0)declare @i intset @i=1while @i<=24beginINSERT INTO [ZHJF].[dbo].[HJ_DailyVal] ([VariableID] ,[CollectTime] ,[VariableValue]) VALUES ('A0013' ,DATEADD(HOUR,@i,'2012-01-12 00:00:00') ,@i) set @i=@... 阅读全文
posted @ 2012-01-12 15:49 biubiubiu 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #region 用Count()得出查询结果的个数 Response.Write("<hr>用Count()得出查询结果的个数<br>"); var langCount = (from s in GetStudents() select s.Language) .Distinct() .Count(); Response.Write(string.Format("<div class='result... 阅读全文
posted @ 2012-01-04 11:17 biubiubiu 阅读(357) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace AuthTest.Models { public class MyAuthAttribute : AuthorizeAttribute { // 只需重载此方法,模拟自定义的角色授权机制 protected override bool AuthorizeCore(HttpCon... 阅读全文
posted @ 2011-12-09 11:35 biubiubiu 阅读(550) 评论(0) 推荐(0) 编辑
摘要: public class Comparint : IEqualityComparer<SBAlarmHelp> { #region IEqualityComparer<SBAlarmHelp> 成员 public bool Equals(SBAlarmHelp x, SBAlarmHelp y) { return x.AlarmCode == y.AlarmCode ? false : true; } public int GetHashCode(SBAlarmHelp obj) ... 阅读全文
posted @ 2011-10-11 12:43 biubiubiu 阅读(280) 评论(0) 推荐(0) 编辑
摘要: function showTips(tips, height, time) { var windowWidth = document.documentElement.clientWidth; var tipsDiv = '<div class="tipsClass">' + tips + '</div>'; $('body').append(tipsDiv); $('div.tipsClass').css({ 'top': height + 'px', & 阅读全文
posted @ 2011-09-14 09:19 biubiubiu 阅读(595) 评论(0) 推荐(2) 编辑
摘要: ViewData的生命周期和View相同, 只对当前View有效. TempData保存在Session中, Controller每次执行请求的时候会从Session中获取TempData并删除Session,获取完TempData数据后虽然保存在内部的字典对象中,但是TempData集合的每个条目访问一次后就从字典表中删除.也就是说TempData的数据至多只能经过一次Controller传递,并且每个元素至多只能访问一次. 阅读全文
posted @ 2011-09-13 09:45 biubiubiu 阅读(545) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE [dbo].[ProcCustomPage] ( @Table_Name varchar(5000), --表名 @Sign_Record varchar(50), --主键 @Filter_Condition varchar(1000), --筛选条件,不带where @Page_Size int, --页大小 @Page_Index int, --页索引 @TaxisField varchar(1000), --排序字段 @Taxis_Sign i... 阅读全文
posted @ 2011-08-31 15:57 biubiubiu 阅读(175) 评论(0) 推荐(0) 编辑
摘要: <iframe src="http://www.baidu.com" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" width="100%" height="100px" id="alarmframe" onreadystatechange="stateChangeIE(this)" style="display: 阅读全文
posted @ 2011-08-16 09:42 biubiubiu 阅读(2914) 评论(0) 推荐(1) 编辑
摘要: //HTML代码 <script src="http://www.cnblogs.com/Repository/JavaScript/Scripts/jquery-1.4.1.min.js" type="text/javascript"></script> <table cellspacing="0" cellpadding="0" width="100%" border="0" height="143" id="t 阅读全文
posted @ 2011-08-15 11:50 biubiubiu 阅读(458) 评论(0) 推荐(1) 编辑