RAD Studio for Microsoft .NET |  |

Building an ASP.NET Application
See Also
Collapse All

The following procedures describe the general steps required to build a simple ASP.NET project. For more advanced topics, refer to the related information following the procedure.

To create an ASP.NET project

1. Create a new ASP.NET project by clicking FileNewASP.NET Web Application. The New ASP.NET Web Application dialog box appears.
2. In the Name field, enter the name of your project.
3. In the Location field, accept the default path or enter another project path.

To change Web server settings (optional)

1. In the New ASP.NET Web Application dialog box, click View Server Options. The dialog expands to show additional server options.
2. Set the various read and write attributes of the project as needed or accept the defaults.
   Tip: In most cases, the default settings will suffice.
3. Click OK. The Web Forms Designer appears.

To create an ASP.NET page

1. Make sure the Designer is displayed.
2. From the Tool Palette, drag components onto the Designer to define the user interface.
3. Add code-behind logic to components.

To add code-behind logic to a component

1. In the Designer, double-click the component to which you wish to apply logic. The code-behind Designer appears, cursor in place between event handler brackets.
2. Add your logic.

To view and edit markup

1. Click the ApplicationName.aspx tab on the Code Editor to view the markup, which shows the HTML and ASP.NET component information.
2. Edit the markup.
3. Save the file.

To run the application

1. Run the application by clicking RunRun.
2. Alternatively, right-click the Code Editor and select View In Browser on the context menu.
3. The application saves and compiles. Once you compile the application, the generated .aspx file displays HTML in the default web browser.

See Also

ASP.NET Overview

Building an ASP.NET "Hello World" Application

Building an ASP.NET Application with Database Controls 1

Building an ASP.NET Application with Database Controls 2

Building an ASP.NET Application with Database Controls 3

Building an ASP.NET SiteMap

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!