Time of Update: 2018-12-07
1//格式化日期 2Date.prototype.format = function(format) 3{ 4 var o = 5 { 6 "M+" : this.getMonth()+1, //month 7 "d+" : this.getDate(), //day 8 "h+" : this.getHours(), //hour 9 "m+" : this.getMinutes(), //minute10
Time of Update: 2018-12-07
使用pcanywhere遠端管理伺服器的朋友肯定都遇到過因為網速等問題導致的忽然斷線,然後就再也串連不上的情況,有時候會提示host is busy,有時候會說is not
Time of Update: 2018-12-07
前一階段寫了一系列的關於EnterpriseLibrary2.0方面的文章(主要是針對初學者),現將所有的文章集中起來,方便初學的人更好的學習,同時提供下載(.chm格式).Enterprise Library 2.0 -- Caching Application Block Enterprise Library 2.0 -- Cryptography Application Block Enterprise Library 2.0 -- Data Access
Time of Update: 2018-12-07
下面的代碼展示了如何將Excel內容顯示到GridView中:aspx代碼:.aspxCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--><%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TCQA.Web._Default" %&
Time of Update: 2018-12-07
//屏蔽瀏覽器右鍵菜單 if (window.Event) document.captureEvents(Event.MOUSEUP); function nocontextmenu(){ event.cancelBubble = true event.returnValue = false; return false; } function norightclick(e){ if (window.Event){
Time of Update: 2018-12-07
客戶 Customer供應商 Supplier倉庫 Stockroom庫存 Inventory貨品 Product型號 Part Number銷售 Sell單據 Bill成本 Cost交貨期 Delivery Period 採購 Purchase採購申請 Purchase
Time of Update: 2018-12-07
using System;using System.Collections.Generic;using System.Text;using System.Security.Cryptography;using System.IO;namespace Component{ public class Security { public Security() { } //預設密鑰向量 private s
Time of Update: 2018-12-07
今天開啟Rose的mdl檔案提示我有語法錯誤,資訊如下:Error: Petal syntax error at line 96043 near
Time of Update: 2018-12-07
通常情況下我們在使用IBatisNet的時候,設定檔和對應檔都是暴露在外的,如果能進入到伺服器,那麼你的程式的操作資料庫的SQL語句,資料庫連接字串等資訊都將很輕鬆的被看到,這樣是很危險的。然而IBatisnet自身也沒有提供設定檔直接加密的方法,但我們可以用變通的方式來儘可能的保護這些檔案中的資訊。IBatisnet的對應檔等可以指定為內嵌的資源,利用這個我們可以把一些敏感資訊寫到另外一個設定檔中,並設定這個設定檔的Build Action為embedded
Time of Update: 2018-12-07
需要引用的程式集:Castle.Facilities.AutomaticTransactionManagement Castle.Services.Transactions Castle.DynamicProxy Castle.Core
Time of Update: 2018-12-07
1、代碼 container = new WindsorContainer(store); container.AddFacility("ibatis", new IBatisNetFacility());2、設定檔<facilities> <facility id="ibatis"> <sqlMap id="sqlServerSqlMap" config="sqlMap.config" /> </faci
Time of Update: 2018-12-07
Enterprise Library 2.0 中的 Logging Application Block 在1.0版本中是Logging and Instrumentation Application Block,因為把重點放在了日誌記錄上,所以改名為Logging Application Block。Logging Application Block提供了統一的日誌記錄功能,它支援將日誌寫入到多種目的地中,比如:1、資料庫;2、文字檔;3、Email;4、訊息佇列;5、WMI event;
Time of Update: 2018-12-07
Enterprise Library 2.0 中的 Exception Handing Applcation Block
Time of Update: 2018-12-07
Time of Update: 2018-12-07
今天有位朋友問我如何在Data Access Application Block中得到儲存的過程的傳回值,我才發現自己以前寫的文章中確實沒提到這方面的問題,現在來補充一下,具體的解決方案如下:1、首先建立一個具有傳回值的預存程序,作為樣本,我就簡單的建一個預存程序,如下:create proc test( @id int)asdeclare @flag intselect * from person where id=@idif @@rowcount >
Time of Update: 2018-12-07
前幾天一位熱心的朋友詢問如何在DataAccess Application
Time of Update: 2018-12-07
Time of Update: 2018-12-07
前言: 本文包括如下內容:1、Cryptography Application Block 的簡單介紹(參考了內建的英文文檔)2、配置Cryptography Application Block(本文以配置Symmetric Encryption Provider為例,Hash Provider 的配置基本相似)3、怎樣對一個資料進行加密?4、資料解密5、如何得到資料的Hash值6、根據資料Hash值來判斷資料是否變化第一部分:Crytography Application Block
Time of Update: 2018-12-07
Time of Update: 2018-12-07
我們知道,資料庫中DateTime子段允許為空白(null)。當我們在ASP.NET中映射為DateTime是就不允為空白了。該怎麼處理?基本有兩種辦法: (1)修改.hbm.xml檔案中的類型,該"DateTime"為"String",該實體檔案中的屬性類型"DateTime"為"String"。 處理的時候,該屬性值要麼為空白,要麼是具有正確日期格式的字串。 該方法只適合DateTime類型,而對int,bool類型就不適應了。下面就看第二種方法。