Ajax.net initial access-configuration Environment

Source: Internet
Author: User
In the early stage, the system learned some knowledge about CORBA, Web Services, and grid. It felt quite helpful and suddenly felt that the relevant learning notes would not be uploaded, the Software Design Idea dominated by software reuse will be deeply rooted in my mind in future project development, so I have to constantly learn new technologies for my use.
I have been learning Ajax technology for the past two days, because I was deeply aware of the low web efficiency in previous. NET development, so I have to take advantage of it this time.
Step 1: Install ajax.net.
Installing ajax.net is simple, but before installing the ajax.net extension package, make sure that we have installed vs. NET 2005 or visual web developer 2005 express edition and. Net frameworks 2.0 correctly. You can log on to the official website of ajax.net to download the ajax.net extension package. Http://ajax.asp.net/downloads/default.aspx? Tabid = 47

After the download is complete, double-click the installation. After the installation, you can take a look at the update documentation to see what functions have been updated by ajax.net.

Step 2: Create an Ajax-enabled website

Open vs. net2005 and choose "New Website". If you have successfully installed the ajax.net extension package, you will find that the Project template contains the Asp.net Ajax-enabled web site. Select it and create a new website.

After creating a website, you will find that the Ajax-enabled website has an additional scriptmanager control than the normal website. Scriptmanager is a very important control of ajax.net. It can only appear once on a page (if masterpage is used, the subpage cannot be used after masterpage uses scriptmanger ), handles all the ajax.net components and partial updates on the current page. It can also specify the required script library to provide more flexible operations.

To use ajax.net well, you must learn to use the Ajax control provided by ajax.net flexibly.
Toolkit. This control package provides a lot of controls that are very effective, with which you can easily create an Ajax website. From this chapter, we will learn how to use Ajax cotrol
All controls in toolkit.

Step 1: Create an Ajax toolkit Template

We should be impressed that after we successfully installed the Ajax extension package, an Asp.net Ajax-enabled web is added to the vs.net template.
Site template. It is the official template of Microsoft, and today we will create our own Ajax Control Toolkit web site template.

First download Ajax Control Toolkit: http://www.codeplex.com/AtlasControlToolkit/Release/ProjectReleases.aspx? Releaseid = 4923

It has two versions. We recommend that you download the version marked in the red box because the version has the source code for your convenience.

Download the package and decompress it to the local folder. Double-click the ajaxcontroltoolkit. sln file and select "normal project loading ". Open solution Resource Manager and we can find
There are many projects, and we only need to regenerate the templatevsi DLL. After the template is generated, the following files will be added to the bin folder of templatevsi.

Double-click ajaxcontrolextender. VSI to install the Ajax Control Toolkit template. Select the rewrite name in the prompt box.

After that, open vs.net 2005 and I will be able to see the Ajax Control Toolkit web site template.

Step 2: Add Ajax Control Toolkit

After the website is created, we cannot see the ajax.net toolset in the toolbar. We need to add it ourselves. Add a tab in the toolbar and name it Ajax.
Control
Toolkit or other names you like. Right-click the new tab and choose "select items"> "Browse"> Find the folder you just decompressed and
Find ajaxcontroltoolkit. dll in the bin folder of samplewebsite, select it, and confirm it all the way. In this way, you can add all the controls
Added tab.

Note: We recommend that you use Asp.net Ajax-enabled web site to create a website when creating a project. Then, import all the bin files in the samplewebsite folder to the bin folder of the website and configure the web. in the <system. web> Add in
<Pages>
<Controls>
<Add namespace = "ajaxcontroltoolkit" assembly = "ajaxcontroltoolkit" tagprefix = "ajaxtoolkit"/>
</Controls>
</Pages>

In this way, some controls can be solved.
The toolkit control cannot be registered.

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.