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
- Create a new ASP.NET project by clicking FileNewASP.NET Web Application. The New ASP.NET Web Application dialog box appears.
- In the Name field, enter the name of your project.
- In the Location field, accept the default path or enter another project path.
To change Web server settings (optional)
- In the New ASP.NET Web Application dialog box, click View Server Options. The dialog expands to show additional server options.
- 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.
- Click OK. The Web Forms Designer appears.
To create an ASP.NET page
- Make sure the Designer is displayed.
- From the Tool Palette, drag components onto the Designer to define the user interface.
- Add code-behind logic to components.
To add code-behind logic to a component
- 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.
- Add your logic.
To view and edit markup
- Click the ApplicationName.aspx tab on the Code Editor to view the markup, which shows the HTML and ASP.NET component information.
- Edit the markup.
- Save the file.
To run the application
- Run the application by clicking RunRun.
- Alternatively, right-click the Code Editor and select View In Browser on the context menu.
- The application saves and compiles. Once you compile the application, the generated .aspx file displays HTML in the default web browser.