AjaxAutoComplete


【功能說明】

用途 : TextBox 元件的擴展,通過呼叫 WebService 取到提示資料,供用戶能達到自動選擇的功能。

 

【元件屬性】

ID ( 元件名稱 ) (string)

用於 識別該組件。

ServicePath ( )(string)

用於 表示 所呼叫 WebService 的路 ,預設 ~/ AutoComplete.asmx

ServiceMethod ( 方法 )(string)

表示 所呼叫 WebService 的方法形如

public string[] Method(string prefixText, intcount) {} // 第一個參數 prefixText 是用戶所 key 的內容;第二個參數是所需要獲取提示資料的數量 ( 2 個參數都會自動傳給 WebService ServiceMethod 方法);返回值是用戶所獲得提示資料的來源陣列 ,預設為 GetCompletionList

MinimumPrefixLength ( 最小前綴長度 )( int)

用戶在獲得提示之前所必須輸入的字串大小,以所輸入字串為開頭的字元個數 ,預設為 3

CompletionInterval ( 完成時間 )( int )

表示 用戶在輸入之後到獲取提示資料所需要的時間間隔 ,預設為 1000

EnableCaching ( 緩存 )( bool)

用於 設定 是否允許 Client 緩存已提示 過的提示資料 ,預設 ture

CompletionSetCount ( 獲取資料量 )( int )

獲取提示資料的數量,也就是 ServiceMethod 的第二個參數所獲得的值,預設為 10

 

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)