AspNetAjaxLibrary0911版本 翻譯by hongwise.doc_第1頁(yè)
AspNetAjaxLibrary0911版本 翻譯by hongwise.doc_第2頁(yè)
AspNetAjaxLibrary0911版本 翻譯by hongwise.doc_第3頁(yè)
AspNetAjaxLibrary0911版本 翻譯by hongwise.doc_第4頁(yè)
AspNetAjaxLibrary0911版本 翻譯by hongwise.doc_第5頁(yè)
已閱讀5頁(yè),還剩5頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

ASP.NET Ajax Library Beta version 0911Release Notes(發(fā)步說(shuō)明)概要1綜述2發(fā)布版本包含了什么2Visual Studio 兼容性3使用指南,參考文檔和示例代碼3兼容的瀏覽器4如何使用ASP.NET Ajax Library Scripts4添加ASP.NET Ajax Library到Visual Studio工具箱4從工具欄中添加一個(gè)控件到 Web Forms Page6通過(guò)使用腳本元素實(shí)例化控件7使用微軟的Ajax內(nèi)容傳送網(wǎng)絡(luò)(CDN)9提供反饋9已知問(wèn)題9A Reference is not added for System.Web.Ajax.dll9The Extender Wizard does not appear in Visual Studio 2010 when targeting ASP.NET 49Using the AjaxControlToolkit.dll from the Global Assembly Cache10概要This document describes the features of the ASP.NET Ajax Library Beta release. The goal of this release is to give you visibility into our design process, to allow you to test the technology early in the product cycle, and to give you a chance to send us feedback on the implementation.本文檔介紹了ASP.NET Ajax Library Beta版本的功能。這個(gè)版本的目的是讓你參與我們的設(shè)計(jì)過(guò)程,讓您在產(chǎn)品周期前期測(cè)試技術(shù),給你一個(gè)機(jī)會(huì)對(duì)我們反饋使用情況。綜述The ASP.NET Ajax Library is a JavaScript library that enables you to build highly interactive Ajax applications. You can use the ASP.NET Ajax Library in both ASP.NET Web Forms and ASP.NET MVC applications. The library is compatible with modern browsers including Microsoft Internet Explorer, Mozilla Firefox, Apple Safari, and Google Chrome.ASP.NET Ajax Library是一個(gè)能讓您構(gòu)建高交互性的Ajax應(yīng)用程序的JavaScript庫(kù)。你可以在ASP.NET的Web Forms和ASP.NET MVC應(yīng)用ASP.NET Ajax Library。該庫(kù)兼容了微軟IE瀏覽器,Mozilla的火狐,蘋果Safari和谷歌Chrome瀏覽器各主流瀏覽器。Using the ASP.NET Ajax Library, you can take advantage of ASP.NET Ajax client controls, client templates, and the client data context to build database-driven Web applications that execute entirely within the Web browser. For example, you can display database data retrieved from a WCF service, an ASP.NET Web service (.asmx), an ADO.NET Data Services service, or any endpoint that can return JSON-formatted data. The ASP.NET Ajax Library lets you both retrieve and modify database data in the client.使用ASP.NET Ajax Library,你可以利用ASP.NET AJAX客戶端控件的優(yōu)勢(shì),客戶端模板,并在客戶端的數(shù)據(jù)范圍內(nèi)建立數(shù)據(jù)庫(kù)驅(qū)動(dòng)的Web應(yīng)用程序,并且在Web瀏覽器內(nèi)執(zhí)行完全。例如,你可以顯示一個(gè)WCF服務(wù),ASP.NET Web服務(wù)(檢索數(shù)據(jù)庫(kù)中的數(shù)據(jù)。asmx)的,一個(gè)ADO.NET數(shù)據(jù)服務(wù)的服務(wù),或任何端點(diǎn),可以返回的JSON格式的數(shù)據(jù)。在ASP.NET Ajax Library可以讓你可以檢索和修改在客戶端數(shù)據(jù)庫(kù)中的數(shù)據(jù)。This release of the ASP.NET Ajax Library includes the Ajax Control Toolkit. You can use all the Ajax Control Toolkit controls in an ASP.NET Web Forms application like you use Web server controls or in any ASP.NET MVC or purely client-based Web application by using JavaScript.這個(gè)版本的ASP.NET Ajax Library包括了Ajax Control Toolkit。You can use all the Ajax Control Toolkit controls in an ASP.NET Web Forms application like you use Web server controls or in any ASP.NET MVC or purely client-based Web application by using JavaScript.發(fā)布版本包含了什么When you install the Beta release, the following folders and files are created:當(dāng)您安裝了Beta版本,下面的文件夾和文件的創(chuàng)建: Scripts. This is a folder that contains all the ASP.NET Ajax Library JavaScript files.Scripts. 這是一個(gè)文件夾包含所有的ASP.NET AJAX Library的JavaScript文件。 Web Forms. This is a folder that contains the two assemblies that are required in order to use the controls from the Ajax Control Toolkit as Web server controls in Web Forms applications (System.Web.Ajax.dll and AjaxControlToolkit.dll).Web Forms. 這是一個(gè)文件夾包含兩個(gè)在Web Forms applications中使用Ajax Control Toolkit所必需的程序集(System.Web.Ajax.dll和AjaxControlToolkit.dll)。 AspNetAjaxBetaSamples. This is a Visual Studio solution that contains sample code that illustrates how you can use features of the ASP.NET Ajax Library.AspNetAjaxBetaSamples. 這是一個(gè)Visual Studio解決方案包含示例代碼演示如何使用ASP.NET AJAX Library的功能。Visual Studio 兼容性The ASP.NET Ajax Library is compatible with Visual Studio 2008 (including Visual Web Developer 2008). The ASP.NET Ajax Library also is compatible with Visual Studio 2010 Beta when targeting ASP.NET 3.5. When using Visual Studio 2010 and targeting ASP.NET 4, you cannot use the Extender Wizard from the Visual Studio Designer. We plan to release a .NET 4 version of the ASP.NET Ajax Library when Visual Studio 2010 is released.ASP.NET Ajax Library與Visual Studio 2008兼容(包括Visual Web Developer 2008)。ASP.NET Ajax Library還與Visual Studio 2010測(cè)試版針對(duì)ASP.NET 3.5時(shí)兼容,。當(dāng)使用Visual Studio 2010和ASP.NET 4,您不能使用Visual Studio設(shè)計(jì)器擴(kuò)展向?qū)?。使用指南,參考文檔和示例代碼To learn how to use the ASP.NET Ajax Library, visit the Ajax Library Web site at the following location: 要了解如何使用ASP.NET Ajax Library,請(qǐng)?jiān)L問(wèn) Ajax Library網(wǎng)站:http:/www.ASP.net/ajaxLibraryThe Ajax Library Web site includes tutorials, sample code, and sample applications. 該網(wǎng)站包含Ajax Library教程,代碼示例和示例應(yīng)用程序。兼容的瀏覽器This release has been tested on the following browsers. The library might work with other browsers and with other versions of the following browsers as well.此版本已測(cè)試以下瀏覽器。該庫(kù)或許也可以運(yùn)行于其他瀏覽器以及以下瀏覽器的其他版本。 Microsoft Internet Explorer 6, 7, and 8 Mozilla Firefox 3 and 3.5 Apple Safari 4 Opera 10 Google Chrome 3如何使用ASP.NET Ajax Library ScriptsThere are two ways that you can use the ASP.NET Ajax Library scripts in a Web application. If you are building an ASP.NET Web Forms application, you can add the controls from the ASP.NET Ajax Library to the Visual Studio Toolbox. You can then add an ASP.NET Ajax control to a Web Forms page simply by dragging the control from the Toolbox.有兩種方法,您可以在Web應(yīng)用程序中使用ASP.NET Ajax Library scripts。如果您要構(gòu)建一個(gè)ASP.NET Web窗體應(yīng)用程序,您可以添加ASP.NET Ajax Library的控件到Visual Studio工具箱。然后,您只需從工具箱拖動(dòng)控制就可以添加一個(gè)ASP.NET AJAX控件到Web窗體頁(yè)Alternatively, if you are creating an ASP.NET Web Forms application, an ASP.NET MVC application, or any other type of Web application, you can instantiate ASP.NET Ajax controls in JavaScript code.此外,如果你正在創(chuàng)建一個(gè)ASP.NET Web窗體應(yīng)用程序,一個(gè)ASP.NET MVC應(yīng)用程序,或任何其他類型的Web應(yīng)用程序,你可以實(shí)例ASP.NET AJAX控件中的JavaScript代碼。添加ASP.NET Ajax Library到Visual Studio工具箱要添加庫(kù)中的控件添加到Visual Studio工具箱,請(qǐng)按照下列步驟::1) 在Visual Studio中,創(chuàng)建一個(gè)新的ASP.NET網(wǎng)站項(xiàng)目或ASP.NET Web應(yīng)用程序項(xiàng)目。.2) 打開(kāi)Visual Studio設(shè)計(jì)器中的Default.aspx頁(yè)。 (工具箱根據(jù)不同的文件類型顯示不同的項(xiàng)目,所以你必須打開(kāi)一個(gè)Web窗體頁(yè)。)3) 右鍵單擊工具箱,然后單擊添加選項(xiàng)卡。命名新標(biāo)簽ASP.NET Ajax Library(您可以自由使用任何您所選擇的名稱)。.4) 用鼠標(biāo)點(diǎn)擊下方的新的ASP.NET Ajax Library選項(xiàng)卡,然后右擊選擇項(xiàng)目.打開(kāi)選擇工具箱項(xiàng)對(duì)話框。5) 點(diǎn)擊瀏覽按鈕,瀏覽到該位置下載的ASP.NET Ajax Library。 6) 在Web Forms文件夾中選擇AjaxControlToolkit.dll程序集,然后單擊確定。.7) 按確定關(guān)閉對(duì)話框,選擇更新了的新的控件工具箱。所有的ASP.NET Ajax Library中服務(wù)器控件將出現(xiàn)在工具箱下。 從工具欄中添加一個(gè)控件到 Web Forms Page To use the controls, you can drag them from the Toolbox to a page or you can use the Visual Studio Add Extender wizard. For example, to use an ASP.NET Ajax Calendar control in a Web Forms page, follow these steps:若要使用控件,可以從工具箱拖動(dòng)一個(gè)到頁(yè)面或者您可以使用Visual Studio中添加擴(kuò)展向?qū)?。例如,要使用在Web窗體頁(yè)ASP.NET Ajax的日歷控件,請(qǐng)按照下列步驟1) 打開(kāi)一個(gè)Web窗體頁(yè)并切換到設(shè)計(jì)視圖。.2) 從工具箱的標(biāo)準(zhǔn)選項(xiàng)卡,將一個(gè)TextBox控件到頁(yè)面中。.3) 從ASP.NET Ajax Library的工具箱選項(xiàng)卡,拖動(dòng)ToolkitScriptManager控件到頁(yè)面。當(dāng)你這樣做了,System.Web.Ajax.dll和AjaxControlToolkit.dll組件自動(dòng)被添加到Web應(yīng)用程序的Bin文件夾中。4) 右鍵單擊該文本框控件,然后單擊添加擴(kuò)展器。選擇此選項(xiàng)會(huì)導(dǎo)致擴(kuò)展向?qū)С霈F(xiàn)。5) 從向?qū)нx擇CalendarExtender,然后單擊確定。6) 運(yùn)行該頁(yè)面,當(dāng)你將焦點(diǎn)移動(dòng)到TextBox控件,就會(huì)出現(xiàn)一個(gè)日歷控件。通過(guò)使用腳本元素實(shí)例化控件As an alternative to adding the ASP.NET Ajax Library to the Visual Studio Toolbox, you can add a script element to a page and set its src attribute to reference Start.js. For example, you can add the following script element to either an .aspx or .html page:(This example assumes that you have copied the contents of the Scripts folder included in the ASP.NET Ajax Library download into a folder named Scripts in your Web application.)In general, the only JavaScript file that you need to explicitly include in a page is the Start.js file. The Start.js script contains the client script loader that you can use to load all other script files that you need to use in the page.While developing an application, you can add the debug version of the Start.js file, as in the following example: After you add a reference to the Start.js script, you can create and attach an ASP.NET Ajax control to a DOM element by using the Sys.create method. For example, the following page displays a Calendar control whenever you move focus to the input element: Simple Calendar Sys.require(Sponents.calendar, function() Sys.create.calendar(#travelDate); ); 使用微軟的Ajax內(nèi)容傳送網(wǎng)絡(luò)(CDN)This Beta release of the ASP.NET Ajax Library is hosted on the Microsoft Ajax Content Delivery Network (CDN). You can use the ASP.NET Ajax Library directly from the CDN by adding the following script element to a page:Visual Studio 2010 supports IntelliSense from the CDN. (Visual Studio 2008 does not.)提供反饋To provide feedback on the ASP.NET Ajax Library, visit the following forums hosted at the ASP.NET Web site at the following location:/1214.aspx已知問(wèn)題A Reference is not added for System.Web.Ajax.dllThe AjaxControlToolkit.dll references System.Web.Ajax.dll. In a Web Application Project, if you drag and drop controls from the Toolkit onto the page, a reference to AjaxControlToolkit.dll is added, but not one to System.Web.Ajax.dll. Since both assemblies are actually added to the bin, this does not pose a run-time problem. However, if you subsequently drag a control which depends directly on System.Web.Ajax.dll into the project (AjaxScriptManager is currently the only such control), you will need to add the reference manually. This issue affects both Visual Studio 2008 and Visual Studio 2010.Fix/Recommendation: Existing users of the ACT will not suffer at run-time because both assemblies are in

溫馨提示

  • 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論