AJAX Control Toolkit 控件学习(转自csdn山巅)
AJAX Control Toolkit 控件學習
2006-1-16
| ToggleButton | 關聯ASP.NET CheckBox控件 | |||||||||||||||||||
| RoundedCorder | 造就圓角框 | |||||||||||||||||||
| PasswordStrength | TextBox中輸入數據長度,以及限制;非常智能,有提示圖 | |||||||||||||||||||
| DropShadow | 造就了照片的背影效果。 | |||||||||||||||||||
| ScrollManagerProxy | 同一頁中只允許一個ScriptManager情況下,使用它來作為第二個ScriptManager | |||||||||||||||||||
| HoverMenu | 提供彈出式菜單。 | |||||||||||||||||||
| FilteredTextBox | 關聯TextBox,可以確保其內只輸入數字,小寫字母,或其他自定義規則 | |||||||||||||||||||
| 2007-1-16 | ||||||||||||||||||||
| DragPanel | 創建可以拖動的窗體,好像有點問題,普通創建下沒效果,在提供的demo中到可見 | |||||||||||||||||||
| CollapsePanel | 不錯,可以創造出下拉的效果。關聯對象<asp:panel> | |||||||||||||||||||
| DynamicPopulate | 可動態顯示服務器時間等應用。!!會使用到頁內嵌的WebService代碼。[學習] | |||||||||||||||||||
| ClientControls | 講了兩個asp.net的驗證控件RequiredFieldValidator和RangeValidator | |||||||||||||||||||
| NetWorkCalls | AJAX訪問Web服務。視頻講了客戶端調用WebService的實現原理及注意點,不錯!! | |||||||||||||||||||
| Javascript通過調用Proxy來間接調用WebService //此處HelloWorld實際上并不是調用的WebService中HelloWorld的方法, //而是調用的Proxy ???,他有多余的參數 [見當webservice.asmx在瀏覽器中查看,后綴加/js,就可以看到保存的文件里面的真正調用的HelloWorld方法的參數] ?varRet=NetWorkCallsWebService.HelloWorld(document.getElementById('Text1').value, onComplete,onTimeOut,onError);//完成,超時以及報錯 | ||||||||||||||||||||
| Accordion | 效果不錯。更優:最初下載第一個頁簽的內容,因為它最早展示給用戶。然后可以再看第一個的時候,后臺下載第2,3,4等多個。從而感覺很好。[I like it!!] | |||||||||||||||||||
| 2007-1-17 | ||||||||||||||||||||
| AlwaysVisible | 效果:使含內容的某個panel可以在網頁上一直可見,即隨滾動條滾動 | |||||||||||||||||||
| ModalPopUp | 彈出式panel,可以進行某些操作。控制Panel 注意: (1)Style="display: none" (2) .modalBackground { ?????? background-color:Gray; ???? //控制當彈出按鈕后,主界面的可視度 ?????? filter:alpha(opacity=70); ?????? opacity:0.7; } | |||||||||||||||||||
| 2007-1-18 | ||||||||||||||||||||
| PopUpControlExtender | 單擊某一TextBox彈出一選擇框,如RadioButtonList、Calender等。 選擇完后動態在TextBox中顯示結果。 可應用在彈出日期框,選擇日期等。[見附件1代碼] 注意: (1)設置RadioButtonList的AutoPostBack="true"。 (2)在代碼文件中using AjaxControlToolkit; (3)CommitProperty="value" CommitScript="e.value += ' - SEND A MEETING!';" | |||||||||||||||||||
| TextWaterMarkExtender | 針對TextBox,實為擴展了它的功能,讓TextBox帶有水印提示。好! 選擇TargetID后,會在相應的TextBox屬性增加一項 Extenders:TextWatermarkExtender | |||||||||||||||||||
| EnableWebService視頻 ? ? 此視頻講了AJAX訪問 WebServicer 的實現原理。 | <!--[if !supportLists]-->(1)?????? <!--[endif]-->Ajax訪問WebService,使用javascirpt,并非直接去訪問webservice,而是訪問Asyn WebService Proxy。 <!--[if !supportLists]-->(2)?????? <!--[endif]-->在WebConfig的HttpHandlers中,去除默認的WebService調用,而是使用ScriptHandlerFactory來調用。 <httpHandlers> ???????????????????? <removeverb="*"path="*.asmx"/> ???????????????????? <addverb="*"path="*.asmx"validate="false"type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> ???????????????????? <addverb="GET,HEAD"path="ScriptResource.axd"type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"validate="false"/> </httpHandlers> <!--[if !supportLists]-->(3)?????? <!--[endif]-->AJAX ScriptManager的ScriptReference屬性告訴JS調用的WebService的所在位置。 | |||||||||||||||||||
| AddingAJAX視頻 ? 添加UpdatePanel達此效果 | 講了怎樣使用AJAX,及其局部刷新的效果。若要升級至AJAX,需要對Web.Config添加一些內容如下: <system.web> <httpHandlers> ???????????????????? <remove verb="*" path="*.asmx"/> ???????????????????? <add verb="*" path="*.asmx" validate="false" type="Microsoft.Web.Script.Services.ScriptHandlerFactory, Microsoft.Web.Extensions, Version=1.0.61025.0, ?Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> ???????????????????? <add verb="GET" path="ScriptResource.axd" ?type="Microsoft.Web.Handlers.ScriptResourceHandler" validate="false"/> </httpHandlers> <httpModules> ???????????????????? <add name="WebResourceCompression" type="Microsoft.Web.Handlers.WebResourceCompressionModule, Microsoft.Web.Extensions, Version=1.0.61025.0, ?Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> ???????????????????? <add name="ScriptModule" ?type="Microsoft.Web.UI.ScriptModule, Microsoft.Web.Extensions, Version=1.0.61025.0, ?Culture=neutral, PublicKeyToken=31bf3856ad364e35"/> </httpModules> </system.web> | |||||||||||||||||||
| CaseCadingDropDown | <!--[if !supportLists]-->(1)????????? <!--[endif]-->擴展了DropDownList服務器控件 <!--[if !supportLists]-->(2)????????? <!--[endif]-->實現了多級服務器控件聯動效果 <!--[if !supportLists]-->(3)????????? <!--[endif]-->DropDownList內容可從XML或數據庫中讀取[方法見附件2] <!--[if !supportLists]-->(4)????????? <!--[endif]-->注意: CascadingDropDownProperties,主要屬性如下:
| |||||||||||||||||||
轉載于:https://www.cnblogs.com/lsgoodsun/archive/2007/09/23/903116.html
總結
以上是生活随笔為你收集整理的AJAX Control Toolkit 控件学习(转自csdn山巅)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 算法日记-01-算法和数据结构概览
- 下一篇: 收集一些.NET开发资源站点和部分优秀.