原创 request.getscheme()

這個語句是用來拼裝當前網頁的相對路徑的。<base href="...">是用來表明當前頁面的相對路徑所使用的根路徑的。比如,頁面內部有一個連接,完整的路徑應該是 http://localhost:80/myblog/authen/log

原创 Jetty

Jetty 是一個開源的servlet容器,它爲基於Java的web內容,例如JSP和servlet提供運行環境。Jetty是使用Java語言編寫的,它的API以一組JAR包的形式發佈。開發人員可以將Jetty容器實例化成一個對象,可以

原创 Serializable

public interface Serializable類通過實現 java.io.Serializable 接口以啓用其序列化功能。未實現此接口的類將無法使其任何狀態序列化或反序列化。可序列化類的所有子類型本身都是可序列化的。序列化

原创 好用的分頁

<input type="hidden" name="page" id="currentPage" value="$PAGELIST.currentPage"/>            </form>  

原创 服務器應用程序不可用解決方案

Failed to execute request because the App-Domain could not be created解決辦法打開ASP.NET網站時,如果發生錯誤, 查看"事件查看器" 中的記錄,如果發現警告信息:

原创 服務器應用程序不可用解決方案

Failed to execute request because the App-Domain could not be created解決辦法打開ASP.NET網站時,如果發生錯誤, 查看"事件查看器" 中的記錄,如果發現警告信息:

原创 21 Laws of Computer Programming

As any experienced computer programmer knows, there are unwritten laws that govern software development. However there

原创 上傳文件

using System;using System.Data;using System.Data.SqlClient;using CA.Components;        //全部在組件名稱空間下namespace CA.Compone

原创 The commonest javascript bug

Every couple of weeks somebody will come running to me: “Swizec, Swizec, I did everything right, but this javascript i

原创 C#創建文件夾並設置權限

/*C#創建文件夾並設置權限*//*     需要添加以下命名空間:     using System.IO;     using System.Security.AccessControl;     */          string

原创 交叉表查詢 (LINQ to DataSet)

// Fill the DataSet.DataSet ds = new DataSet();ds.Locale = CultureInfo.InvariantCulture;FillDataSet(ds);DataTable order