Time of Update: 2018-12-05
list遍曆 原文地址 http://www.2cto.com/kf/201207/140158.html/** * */package com.svse.test;import java.util.*;/** * @author seven * */public class ListTest {public static void main(String[] args) {List l = new ArrayList();l.add("世界你好!");l.add("上海");for
Time of Update: 2018-12-05
/** * */package test.excel;/** * @author seven *2013-4-11上午09:15:23 */import java.io.FileOutputStream;import java.util.Date;import org.apache.poi.hssf.usermodel.DVConstraint;import org.apache.poi.hssf.usermodel.HSSFCell;import
Time of Update: 2018-12-05
巧用in關鍵字實現資料的大量刪除 巧用in關鍵字實現資料的大量刪除原創:小汪仔在WEB編程中經常會碰到資料的大量刪除。我們通常的做法是通過迴圈來實現資料的批量的刪除。但是一個程式模組迴圈用的太多那麼這個程式模組的品質就會下降。因此本文就介紹通過巧用in關鍵字來實現資料的大量刪除。讓我們通過一個例子來講解IN關鍵字的資料大量刪除假如我們要刪除這個頁面的資料:相關代碼如下:managenews.asp <!--#include file="conn.asp"-->
Time of Update: 2018-12-05
一個取圖片尺寸的類,支援jpg,gif,png 'I have released this source code into the public domain. You may use it'with no strings attached.'Just call GetImageSize with a string containing the filename, and'it will return a user defined type 'ImageSize' (see
Time of Update: 2018-12-05
閏年的判別 body bgcolor="#FFFFFF"><div align="center"><font color="#FF0000"><b>閏年判別 </b></font><b></b> </div><%if Request.Form("cal")="y" thenn=Cint(Request.form("me"))if ((n mod 4=0) and (n mod
Time of Update: 2018-12-05
//全選function allselectRow(tableName) {$('#' + tableName).datagrid('selectAll');}//反選function unselectRow(tableName) {var s_rows = $.map($('#' + tableName).datagrid('getSelections'),function(n) {return $('#' + tableName).datagrid('getRowIndex', n);});
Time of Update: 2018-12-05
FileSystemObject 物件模型在為 Active Server Pages、Windows Scripting Host、或其他可以使用 scripting 的應用程式寫指令碼時,在 Web 服務器上添加、移動、改變、建立或刪除檔案夾(目錄)和檔案通常是很重要的。獲得有關資訊和操作串連在 Web 服務器上的磁碟機也可能是必要的。Scripting 允許用 FileSystemObject (FSO) 對象模式來處理磁碟機、檔案夾和檔案,在下面的章節中將解釋該對象模式:
Time of Update: 2018-12-05
指定web應用的預設編碼集,可為GBK/GB2312struts.i18n.encoding=UTF-8指定Struts2架構預設載入的設定檔Struts..configuration.files=struts-default.xml,struts.xml,strtus-plugin.xml指定Struts2應用載入使用者自訂的屬性檔案,不覆蓋 struts.properties中的屬性struts.custom.properties=application,org/apache/struts2
Time of Update: 2018-12-05
FileSystemObject 和 Scripting 執行階段程式庫參考的介紹FileSystemObject (FSO) 對象模式,允許對大量的屬性、方法和事件,使用較熟悉的 object.method 文法,來處理檔案夾和檔案。使用這個基於對象的工具和: HTML 來建立 Web 頁 Windows Scripting Host 來為 Microsoft Windows 建立批檔案 Script Control 來對用其他語言開發的應用程式提供編輯指令碼的能力 因為在用戶端使用 FSO
Time of Update: 2018-12-05
當表單發送的資料量很大時,就會報錯。查閱MSDN瞭解到,原因是微軟對用Request.Form()可接收的最大資料有限制,IIS4中為80K位元組,IIS5中為100K位元組。 下面是微軟提供的幾個解決方案:1、用Request.BinaryRead 代替 Request.Form方法 來解析表單資料;2、使用檔案上傳方案,比如:Microsoft Posting
Time of Update: 2018-12-05
一、準備工作1、擷取 Subversion 伺服器程式到官方網站(http://subversion.tigris.org/)下載最新的伺服器安裝程式。目前最新的是1.7.4.版本,具體在:http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=8100&expandFolder=8100&folderID=91,二、安裝伺服器端和用戶端Subversion(以下簡稱SVN)的伺服器端和用戶端。下載下下
Time of Update: 2018-12-05
程式員易犯的20條錯誤 1.不要將沒有過濾的使用者輸入發送給用戶端.如:Response.Write "You have entered " & Request("UserInput")2.不要信任用戶端和SESSION變數.3.不要忘記指定字元集.<META http-equiv="Content-Type" content="text/html; charset=GB2312">4.不要在沒處理檔案路徑的情況下讓使用者訪問檔案.如:這樣的運算式是不正常的.http://
Time of Update: 2018-12-05
ADO操作及其參數介紹 1. ASP與Access資料庫連接:<%@ language=VBscript%><%dim conn,mdbfilemdbfile=server.mappath("資料庫名稱.mdb")set conn=server.createobject("adodb.connection")conn.open "driver={microsoft access driver
Time of Update: 2018-12-05
下午在 RedHat Linux 9/MONO 1.0 中編譯了在以往 .net 項目中已經使用過的兩個類庫項目,其中第一個較簡單的項目順利編譯通過,在第二個XML類庫項目中出現編譯異常,而這個項目曾經經過微軟的CSC編譯器通過的啊,mono-mcs編譯器的反饋資訊如下:XMLUtility.cs(73) error CS1502: The best overloaded match for method 'System.Xml.XmlAttribute
Time of Update: 2018-12-05
SUNDY原創 2004-11-02 資料庫設計的小網站,表單多而操作簡單,一般就只有插入刪除修改等操作。每次都要重複寫插入修改的SQL,是不是覺得很麻煩呢,我是這麼覺得,所以,自己寫了一個自動產生插入,修改的SQL,就方便多了,一下是ASP代碼,對ACCESS,SQL Server都適用。如果對你有協助,可以拿去用用,還可以改進。<%Dim tableName,strSQL,rsFields,fieldsCount,totalCountDim insertSQL,iFields,
Time of Update: 2018-12-05
Time of Update: 2018-12-05
第一種方法:在tomcat中的conf目錄中,在server.xml中的, <host/ >節點中添加:<Context path="/hello" docBase="D:/work/webapps/test_web" debug="0" privileged="true" reloadable="true"/>至於Context 節點屬性,可詳細見相關文檔。reloadable 設定為true
Time of Update: 2018-12-05
處理檔案有兩種主要的檔案處理類型: 建立、添加或刪除資料,以及讀取檔案 移動、複製和刪除檔案 建立檔案建立空文字檔(有時被叫做“文字資料流”)有三種方法。第一種方法是用 CreateTextFile 方法。 下面的樣本示範了在 VBScript 中如何用這種方法來建立文字檔:Dim fso, f1Set fso = CreateObject("Scripting.FileSystemObject")Set f1 = fso.CreateTextFile("c:/testfile.txt",
Time of Update: 2018-12-05
在下面所列出的,等號後沒有內容的是系統沒有設定或為空白的(本人理解)coding system = #client code page = 936 #設定SAMBA所使用的字元集(預設是:850,936是簡體中文)code page directory = /usr/share/samba/codepages #workgroup = CCGD.COM #設定SAMBA工作群組;netbios name = CCGD.COM #netbios名子;netbios aliases =
Time of Update: 2018-12-05
計算檔案下載時間 <% Function DownloadTime(intFileSize, strModemType) Dim TimeInSeconds, ModemSpeed, strDownloadTime, AppendString Dim intYears, intWeeks, intDays Dim intHours, intMinutes, intSeconds intYears = 0 intWeeks = 0 intDays = 0 intHours = 0