JS格式化日期文字

 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    

pcanywhere失去串連的一個解決方案

使用pcanywhere遠端管理伺服器的朋友肯定都遇到過因為網速等問題導致的忽然斷線,然後就再也串連不上的情況,有時候會提示host is busy,有時候會說is not

EnterpriseLibrary2.0系列文章及下載

        前一階段寫了一系列的關於EnterpriseLibrary2.0方面的文章(主要是針對初學者),現將所有的文章集中起來,方便初學的人更好的學習,同時提供下載(.chm格式).Enterprise Library 2.0 -- Caching Application Block Enterprise Library 2.0 -- Cryptography Application Block Enterprise Library 2.0 -- Data Access

Excel的匯出操作

下面的代碼展示了如何將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" %&

JS–屏蔽瀏覽器右鍵菜單

//屏蔽瀏覽器右鍵菜單    if (window.Event)     document.captureEvents(Event.MOUSEUP);     function nocontextmenu(){      event.cancelBubble = true      event.returnValue = false;      return false;     }     function norightclick(e){      if (window.Event){   

ERP術語 英文對照(部分)(參考)

客戶          Customer供應商        Supplier倉庫               Stockroom庫存          Inventory貨品          Product型號          Part Number銷售          Sell單據               Bill成本          Cost交貨期        Delivery Period 採購          Purchase採購申請      Purchase

字串加密方法

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

Rational Rose 載入出錯的問題

      今天開啟Rose的mdl檔案提示我有語法錯誤,資訊如下:Error: Petal syntax error at line 96043 near

IBatisNet — 保護你的設定檔及對應檔資訊

      通常情況下我們在使用IBatisNet的時候,設定檔和對應檔都是暴露在外的,如果能進入到伺服器,那麼你的程式的操作資料庫的SQL語句,資料庫連接字串等資訊都將很輕鬆的被看到,這樣是很危險的。然而IBatisnet自身也沒有提供設定檔直接加密的方法,但我們可以用變通的方式來儘可能的保護這些檔案中的資訊。IBatisnet的對應檔等可以指定為內嵌的資源,利用這個我們可以把一些敏感資訊寫到另外一個設定檔中,並設定這個設定檔的Build Action為embedded

Automatic Transaction Management Facility 使用

需要引用的程式集:Castle.Facilities.AutomaticTransactionManagement Castle.Services.Transactions Castle.DynamicProxy Castle.Core

IBatisnet Facility 的幾種配置

1、代碼         container = new WindsorContainer(store);            container.AddFacility("ibatis", new IBatisNetFacility());2、設定檔<facilities>  <facility id="ibatis">    <sqlMap id="sqlServerSqlMap" config="sqlMap.config" />  </faci

Enterprise Library 2.0 — Logging Application Block (上)

   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;

Enterprise Library 2.0 — Exception Handing Applcation Block

           Enterprise Library 2.0 中的 Exception Handing Applcation Block

[IBatisNet]關於返回DataTable的一點問題

     

使用Data Access Application Block 得到預存程序的傳回值

        今天有位朋友問我如何在Data Access Application Block中得到儲存的過程的傳回值,我才發現自己以前寫的文章中確實沒提到這方面的問題,現在來補充一下,具體的解決方案如下:1、首先建立一個具有傳回值的預存程序,作為樣本,我就簡單的建一個預存程序,如下:create proc test(    @id        int)asdeclare @flag intselect * from person where id=@idif @@rowcount >

Enterprise Library 2.0 — Data Access Application Block (補充)

      前幾天一位熱心的朋友詢問如何在DataAccess Application

複製DataTable的一種方法

     

Enterprise Library 2.0 — Cryptography Application Block

前言:    本文包括如下內容:1、Cryptography Application Block 的簡單介紹(參考了內建的英文文檔)2、配置Cryptography Application Block(本文以配置Symmetric Encryption Provider為例,Hash Provider 的配置基本相似)3、怎樣對一個資料進行加密?4、資料解密5、如何得到資料的Hash值6、根據資料Hash值來判斷資料是否變化第一部分:Crytography Application Block

對檔案下載的補充

     

NHibernate中DateTime,int,bool空值的處理方法

  我們知道,資料庫中DateTime子段允許為空白(null)。當我們在ASP.NET中映射為DateTime是就不允為空白了。該怎麼處理?基本有兩種辦法: (1)修改.hbm.xml檔案中的類型,該"DateTime"為"String",該實體檔案中的屬性類型"DateTime"為"String"。     處理的時候,該屬性值要麼為空白,要麼是具有正確日期格式的字串。   該方法只適合DateTime類型,而對int,bool類型就不適應了。下面就看第二種方法。

總頁數: 61357 1 .... 4348 4349 4350 4351 4352 .... 61357 Go to: 前往

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.