Ajax Control Toolkit

http://ajaxcontroltoolkit.codeplex.com/

The Ajax Control Toolkit contains a rich set of controls that you can use to build highly responsive and interactive Ajax-enabled Web applications. The Ajax Control Toolkit contains more than 40 controls, including the AutoCompleteCollapsiblePanelColorPickerMaskedEditCalendarAccordionHTML Editor Extender, and Watermark controls. Using the Ajax Control Toolkit, you can build Ajax-enabled ASP.NET Web Forms applications by dragging-and-dropping Toolkit controls from the Visual Studio Toolbox onto an ASP.NET Web Forms page.

The latest release of the AJAX Control Toolkit is May 2012! Check out some of the new features at the announcement at Stephen Walther's blog post including the new AjaxFileUpload control and the improvements to the HtmlEditorExtender control.

To view an interactive Web site that demonstrates each of the Ajax Control Toolkit controls, visit the Ajax Control Toolkit Sample Site. The official website for the Ajax Control Toolkit -- which contains reference documentation, tutorials, and answers to frequently asked questions -- is located athttp://www.asp.net/ajaxlibrary/.

Visual Studio 2008 users, click the Downloads tab above and select the .NET 3.5 version of the toolkit.

Visual Studio 2010 users, install the ASP.NET AJAX Control Toolkit in seconds via NuGet:

The easiest way to install the Ajax Control Toolkit into a Visual Studio 2010 project is via NuGet.

It's easy! If you don't have NuGet, it's a very quick installation.

First, from with an ASP.NET Web Forms project in Visual Studio, install the AjaxControlToolkit package, eitherfrom the GUI or from the Package Manager Console.

Next, for example, register the AjaxControlToolkit at the top of the page (or in the web.config for the whole project)

<%@ Register TagPrefix="asp" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

Now, add a ToolkitScriptManager and use some of the controls!  Here's how to turn a TextBox into a rich HTML editor.

<asp:ToolkitScriptManager runat="Server" />
<asp:TextBox
        ID="txtComments"
        TextMode="MultiLine"
        Columns="60"
        Rows="8"
        runat="server" />
 
<asp:HtmlEditorExtender
        TargetControlID="txtComments"
        runat="server" />

Which gives you this:

There's lots more to see in the AJAX Control Toolkit, so have fun exploring...Enjoy!

 

Last edited May 2 at 12:50 AM by Superexpert, version 88

原文地址:https://www.cnblogs.com/daoxuebao/p/2513243.html