Visual Studio 2005 includes a useful designer that lets you drag and drop controls onto a page. This development environment lets you feel as though you're developing normal applications for a single machine, even though the UI is represented as HTML over HTTP.
We'll take a look at writing a custom control in the next tutorial.
Tutorial 3 Quick Reference
How to switch between ASPX Source code mode and Designer mode
The Design and Source tabs appear near the bottom left-hand side of the editor window
How to add a server-side control to a page
Show the toolbox if it's not already showing by selecting
View | Toolbox
from the main menuClick on the control from the toolbar
Drag the control onto the page
How to change the properties of controls on a page
Make sure the page editor is in Designer mode
Highlight the control whose property you want to change
Select the property to edit in the property window
How to turn tracing on
In Source code editing mode, edit the Page directive to include the phrase trace=true
OR
Select the Document element from the combo box near the top of Properties window
Edit the Trace property to be true
How to change the size of a server-side control
Click on the control once to highlight it
Click on one of the handles appearing on the border of the control. Hold the mouse button down and drag the mouse until the control is the correct size
How to add a handler for a control's default event
Double-click on the control for which you want to handle the event
How to add a handler for a control event (other than the default event)
Press the events button (the lightning bolt) in the properties dialog box
Choose the event you want to add
Double-click in the right-hand pane immediately next to the property in the properties dialog to have Visual Studio invent a handler name for you
OR
Type a name for the handler
Visual Studio will add a handler for you
How to change the layout characteristics of a page
Select Layout from the main menu
Choose from Absolute, Static, Relative, or more detailed options from the Auto Position Options dialog box