Developing asp.net Atlas server-side extender controls-basic concepts and upfront requirements

Source: Internet
Author: User
Tags contains client visual studio
Asp.net| Server | concepts | Controls the advent of Microsoft asp.net atlas almost subverts the entire traditional ASP.net development concept, in theory, the most "pure" Atlas application will move all the presentation layers to the client, The server side is just the service that the client needs to provide. So far this client-side programming model has not been very powerful IDE support (think about writing, debugging JavaScript is painful ...) , taking into account the existence of a lot of existing asp.net programs, and developers need some time to adapt/study. This way, while providing a pure client-oriented programming model, Atlas also allows control developers to develop Atlas components in the form of server-side controls, so that traditional asp.net developers will not feel any different when they develop, and they will also be supported by Visual Studio design time, Compile-time checks, and so on, flattening the learning curve of program developers.

Most of the server-side controls in Atlas can be provided in the form of extender, and the so-called Extender, as the name suggests, is the component that expands the functionality, behavior, etc. of existing controls. For example, add an AutoComplete (auto complete) feature to an existing TextBox control, plus a confirmation dialog box for an existing button control. One of Atlas's official Control Toolkit is the collection of several such extender, where you can go: Atlas Control Toolkit update release (Version 1.0.60504.0), and Atlas Control ToolKit released for more detailed information.

For this very common requirement for development extender, Atlas provides us with a extender base class and the corresponding project Template in Visual Studio. In this series, let's learn how to develop our custom extender by using the Extender base class of Atlas and the corresponding project template in Visual Studio.

Throughout the series, I will explain through the complete development of a control, where I choose the Extender function is, when the user fills in the registration information, use the Ajax method to verify the user name is registered in real time, about this function detailed introduction as well as the client Atlas behavior realization, Please refer to: Use ASP.net atlas to develop a custom behavior to verify that the user name is registered in real time. I recommend the friends who are interested in this series to understand this article, and the concept is understood, will save a lot of time in future development.

Before we develop this control, we need to install the following components/assemblies:

Atlas April CTP, refer to: ASP.net atlas April CTP, of course, you can use only Atlas.dll, but I recommend that you install the template of the Atlas Web site, This allows you to test your controls in real time during the development process.

For Atlas Control Toolkit, refer to the "Atlas" control Toolkit update release (Version 1.0.60504.0) and the Atlas control Toolkit release, To run the self-extracting file AtlasControlToolkit.exe, you will get three directories with a ATLASCONTROLEXTENDER.VSI file in the directory Atlascontrolextender, if you do not want to manually create control projects and numerous Related files/references, it would be a good idea to run the project Template (oh, of course, Visual Studio is still necessary) to install this Visual Studio.

If all goes well, you'll see the template of the Atlas Web site when you create a new Web site, and you'll also see the options for the Atlas control project when you create a new project.

By the way, the other two of the three directories after the AtlasControlToolkit.exe decompression:

The Atlascontroltoolkit directory contains a number of extender provided by this control Toolkit, with source code (but no annotations). This will be an indispensable sample program for you during the development process!

The Samplewebsite directory contains the extender documentation as well as the demo program. Here you can learn how to use the Extender to develop good.

All of the Extender in this control toolkit and the base classes of the Extender provided are compliant with the Microsoft Permissive License protocol, which is a very loose protocol with no restrictions at all, see http:// Www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx .

Come here today, sorry to write such a short article. I'm a little tired ... This series will probably be about two or three pieces. Shun wish you a happy children's Day)







Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.