Creating an AJAX-Enabled Web Application Project in Visual Studio 2008

To create a new Web application project in Visual Studio 2008, complete the following steps.

1.   From the File menu, select New | Project. The New Project dialog box opens.

2.   Select .NET Framework 3.5.

3.   Under Project Types, choose either Visual Basic or Visual C# and then select Web. Note that one of these options may be located under Other Languages.

4.   Select ASP.NET Web Application from the list of Templates in the right pane.

5.   Enter a URL for your application in the Location field and click OK.

Note: The Web server must have IIS version 6 or later and the .NET Framework installed on it. If you have IIS on your computer, you can specify http://localhost for the server.

A new Web project is created at the root of the Web server you specified. In addition, a new Web Forms page called Default.aspx is displayed. in the Web Forms Designer in Design view.

6.   Click the Design tab to make sure you are in Design view.

7.   Double-click the ScriptManager control located under AJAX Extensions in the Toolbox. The ScriptManger is needed to enable certain features of ASP.NET AJAX such as partial-page rendering, client-script functionality of the Microsoft AJAX Library, and Web-service calls. If you switch to Source view by clicking the Source tab, you'll notice the ScriptManager code is placed within the <div> tags.

8.   Double-click a Studio for iPhone control to add it to the project. For more information, see Adding Studio for iPhone Components to a Project


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.