Time of Update: 2018-12-07
WCF,即Windows Communication Foundation,是一個面向服務編程的綜合分層架構,具有跨平台、安全、可信賴、事務性等特點。。它可以被看作是Asmx、.Net Remoting、Enterprise
Time of Update: 2018-12-07
文章目錄 .test() 定義 RegExpRegExp 對象用於儲存檢索模式。通過 new 關鍵詞來定義 RegExp 對象。以下代碼定義了名為 patt1 的 RegExp 對象,其模式是 "e":var patt1=new RegExp("e");功能 : 尋找的是字元 "e".或者使用正則表單式:var reg =new RegExp(/^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+((\.[a-zA-Z0-9
Time of Update: 2018-12-07
SQL Server 中時間比較例子:select count(*) from table where DATEDIFF([second], '2004-09-18 00:00:18', '2004-09-18 00:00:19') > 0說明 select DATEDIFF(day, time1 , time2) 對應樣本語句如下 select DATEDIFF(day, '2010-07-23 0:41:18', '2010-07-23
Time of Update: 2018-12-07
ul 水平,行內塊放置<style type="text/css">ul.ul_inline {display: inline-block;list-style: none;border: 0;width: 350px;margin: 0;padding: 0;overflow: hidden; /* 超過範圍隱藏 */white-space: nowrap; /* 不斷行 */list-style-type:none;}ul.ul_inline li{display:
Time of Update: 2018-12-07
常用:JS 擷取瀏覽器視窗大小// 擷取視窗寬度if (window.innerWidth)winWidth = window.innerWidth;else if ((document.body) && (document.body.clientWidth))winWidth = document.body.clientWidth;// 擷取視窗高度if (window.innerHeight)winHeight = window.innerHeight;else if
Time of Update: 2018-12-07
/* input 和 textarea 最大文字限定外掛程式 * 修改版, 一個中文表示1一個字, 一個英文半個字; * TextLimit - jQuery plugin for counting and limiting characters for input and textarea fields * * pass '-1' as speed if you don't want the char-deletion effect. (don't just put 0) *
Time of Update: 2018-12-07
NHibernate Linq從NHibernate
Time of Update: 2018-12-07
今天有個朋友問我個小問題,說他的樣式檔案只可以使用相對路徑調用,無法使用類似<%=Page.ResovleUrl('')%>的方式來指定路徑。因為公司有文檔說這樣寫更好。確實,因為他以前用的都是VS2005。最近改用了Vs2008。VS2008建立的普通頁面裡
Time of Update: 2018-12-07
資料庫緊急恢複過程當資料庫失效時,請記錄下目前時間,然後遵循下面步驟進行恢複。 1. 備份資料庫。成功,使用備份檔案還原資料庫,轉第2步。失敗,轉第3步。 2. 還原資料庫(在另一個伺服器操作)(1)DECLARE @backup_device nvarchar(128), @log_backup_device nvarchar(128)set @backup_device = N'F:\database\myDb.bak' restore database
Time of Update: 2018-12-07
SubSonic直接執行SQL語句可以使用以下方式:public void Inline_Simple(){QueryCommand cmd = new InlineQuery().GetCommand("SELECT productID from products");Assert.IsTrue(cmd.CommandSql == "SELECT productID from products");} public void
Time of Update: 2018-12-07
subsonic操作執行個體2011/03/16 12:42一、查詢1)簡單查詢 一種方式(分解構造式) SubSonic.Queryquery = TPjWorkday.CreateQuery(); query.SelectList = TPjWorkday.Columns.Year+ ", " + TPjWorkday.Columns.Yearmonth
Time of Update: 2018-12-07
'callbackOnClose':function(){window.location.href=window.location.href;}這樣在點擊關閉的時候,父類頁面會重新整理一下參見http://hi.baidu.com/maml897/blog/item/aa4356cafe275d16be09e692.html原理是一樣的'hideOnOverlayClick': false,在單擊 外面的 時候
Time of Update: 2018-12-07
var obj=$("#xiaozhangPic")[0];var filepath =""; if (window.navigator.userAgent.indexOf("MSIE") >= 1) { obj.select(); filepath = document.selection.createRange().text;} else if (window.navigator.userAgent.indexOf("Firefox") >= 1) { if (
Time of Update: 2018-12-07
js,jQuery 排序的實現:重點: 想要實現排序,最簡單的方法就是 先把標籤用jQuery讀進對象數組用js排序好對象數組 (針對對象數組進行排序, 不要試圖直接對網頁的內容進行直接更改)用對象數組內容覆蓋網頁上的標籤數組;//排序從文字短的到長的 var arr_a=new Array(); var i=0; $(".type_list_txt >
Time of Update: 2018-12-07
JS 時間格式化函數//時間格式化函數Date.prototype.format = function (format) {var o = {"M+": this.getMonth() + 1, //month"d+": this.getDate(), //day"h+": this.getHours(), //hour"m+": this.getMinutes(), //minute"s+": this.getSeconds(), //second"q+": Math.floor((this.
Time of Update: 2018-12-07
擷取當前類得位置以及方法名StackTrace st = new StackTrace(new StackFrame(true));Console.WriteLine(" Stack trace for current level: {0}", st.ToString());StackFrame sf = st.GetFrame(0);Console.WriteLine(" File: {0}", sf.GetFileName());Console.WriteLine(" Method: {0}
Time of Update: 2018-12-07
缺點: 1.會產生髒讀 2.只適用與select查詢語句優點: 1.有些檔案說,加了WITH (NOLOCK)的SQL查詢效率可以增加33%。 2.可以用於inner join 語句髒讀: 一個使用者對一個資源做了修改,此時另外一個使用者正好讀取了這條被修改的記錄,然後,第一個使用者放棄修改,資料回到修改之前,這兩個不同的結果就是髒讀。詳細內容: 要提升SQL的查詢效能,一般來說大家會以建立索引(index)為第一考慮。其實除了index的建立之外,當我們在下SQL Command時,
Time of Update: 2018-12-07
ViewState 只在進行表單提交是才有用.ViewState 在用戶端的表現形式 只是一個隱藏欄位.隱藏欄位<input type="hidden" name="__VIEWSTATE" value=""> 使用方法private void Page_Load(object sender, System.EventArgs e){ViewState["myvalue"] =
Time of Update: 2018-12-07
文章目錄 Count/Sum/Min/Max/Avg操作符 1. 常用查詢:var q = from c in db.Customers where c.City == "London" select c.ContactName;注: select 一定要放在後面 db.Customers 是資料來源c 是Customers 數組中的一個where 條件陳述式select 返回內容, 例如: select
Time of Update: 2018-12-07
<script type="text/javascript"> //滾動外掛程式 (function ($) { $.fn.extend({ Scroll: function (opt, callback) { //參數初始化 if (!opt) var opt = {}; var _this = this.eq(0).find("#scrollDivContent:first"); var lineH =