Getting started with ASP. NET Ajax in Visual Web Developer

Source: Internet
Author: User
Getting started with ASP. NET Ajax in Visual Web Developer

 

Once you download ASP. NET Ajax, you are ready to start using Visual Web Developer and Visual Studio 2005 for your development.

The first thing you will notice when you open up visual web developer is that you now have a new project type called ASP. NET Ajax enabled web site as seen below.

 

Selecting this option will give you a web site with a different default. aspx and web. config than a regular ASP.. NET web site. you'll also have the ASP. net Ajax extensions pre-populated in your toolbox for easy drag and drop into the designer.

Tip: if you are going to be creating a lot of ASP. net Ajax pages or are going to be adding ASP. net Ajax extensions to your existing web site, you may want to create item templates out of your default. aspx and web. config files. in order to do this, you will use the export template wizard on the File menu. choose item template in the Wizard, select references as well as a default name and description for your templates and you are ready to use them over and over again.

Once you export your Templates using the wizard, you will be able to see them in the Add new item dialog as shown below.

Give visual web developer a run for creating your ASP. NET Ajax web site and let us know your feedback.

Couple of gotchas that we 've heard about to date:

1. one issue that people have been running into is with markup intelliisense and source code preservation inside of the new controls like scriptmanager, updatepanel, etc. in HTML source view. this is a known bug that will be fixed in Visual Studio SP1 and there's also a workaround that exists currently. see this post for more details regarding this issue and how you can work around it.

2. another fairly common Gotcha is to forget to change <compilation DEBUG = "true"> to <compilation DEBUG = "false"> in your web. config when you are ready to deploy your application. the default web. config template has DEBUG = "false" but upon F5, Visual Studio will automatically change this to DEBUG = "true" to enable you to debug your app. if you deploy your application without changing this back to DEBUG = "false", you are paying via both a higher payload as well as slightly degraded runtime performance.

Thanks,

-- Bash

Published Wednesday, November 22,200 6 pm by webdevtools

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.