原创 WCF: Throwing Exceptions With WebHttpBinding

One of the very cool new features in Windows Communication Foundation is the ability to create REST or POX services.  U

原创 Check Access Rights to File/Directory on NTFS Volume

More information: Windows NT/2000/XP has API function AccessCheck, which in fact checks access rights to every operatin

原创 PHP通用分頁類(支持php,ajax,html) v1.1.20100329修正版

<?php /** * 通用分頁類 * Author:Zero QQ:93133 * ver 1.2.20120519 修正版 */ class pagination{ private $pstyle=array(); pr

原创 ISAPI Filter編程重寫URL

問題描述:要在一個Web站點上實現二級域名Url的重寫。例如:http://abc.company.com/ 重寫到 http://company.com/usersite.asp?sitename=abc 其中abc二級域名不定,根據用

原创 smarty 開啓use_sub_dirs的錯誤修復

通過跟蹤代碼修改 internals/core.create_dir_structure.php 對照修改   //fix my template dir structure by zero array_splice($_dir_

原创 PSMLIB個人服務器管理組件,IIS管理組件,FTP管理組件

特別說明:本組件原名 “易網IIS管理組件”(可以在百度裏搜索一下),之前發佈的最新版爲2.x,原爲自己服務器使用,所以一直沒有更新。因不斷有網友要求新版本,所以重構了所有代碼發佈最新版本,原來的調用方法完全廢棄。   程序主要功能:

原创 SIJO Soft DSN

'************************************** 'Windows API/Global Declarations for :__ '     ____________...:::SIJO Soft D

原创 精簡ASP購物車類(Session+XML)

因朋友急需,寫的匆忙,歡迎反饋BUG 程序特點:商品屬性可以任意多,屬性名稱完全自定義,脫離數據庫操作,超時或關閉網頁自動釋放資源. <% '購物車類(Session+Xml版) 'Author:Zero QQ93133 '2008-9-

原创 WCF 3.5: Hosting Services for WebGet

In my last post, I provided an overview of using the new WebGet attribute to map an HTTP GET operation to a specific me

原创 iis6 + win2k3中調試isapi filter和extension的方法

iis6 + win2k3中調試isapi filter和extension的方法1.首先,編寫代碼,並編譯成*.dll,留在debug/目錄下(或任意目錄)2.設置*.dll的訪問權限,一般需加上user權限3.在iis測試站點下指定f

原创 一個有趣、有用的js函數庫 php.js

經常在寫javascript代碼的時候,想起php某些函數的功能,總覺得javascript也要這些函數就好了。比如intval之類的,當然也可以自己寫函數來實現。後來在網上逛的時候,發現了還真有人在做這個事情。這個是作者的博客:http

原创 Handling Disconnects with WCF

I've been working on an application which relies heavily on WCF to communicate. I have a very simple interface (contrac

原创 HTML Form Handler Sample

引自:MSDN http://msdn.microsoft.com/en-us/library/bb943485.aspx   Download sample     This sample shows how to extend the

原创 REST in WCF: Varying response content type based on HTTP Request Headers

Damian's used the same WCF extensibility points I used to produce some boilerplate that varies the response content typ

原创 聚焦WCF行爲的擴展

WCF以其靈活的可擴展架構爲開發者提供了方便,其中對行爲的擴展或許是應用中最爲常見的。自 定義對行爲的擴展並不複雜,但仍有許多細節需要注意。在服務端,一般是對DispatchRuntime和DispatchOperation進行擴展,