Chapter 3 Quick Reference
To | Do This |
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 |
Add a server-side control to a page | Show the toolbox if it's not already showing by selecting View | Toolbox from the main menu Click on the control from the toolbar Drag the control onto the page |
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 |
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 |
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 |
Add a handler for a control's default event | Double-click on the control for which you want to handle the event |
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 |
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 |