O'Reilly logo

Learning ASP.NET 2.0 with AJAX by Dan Hurwitz, Jesse Liberty, Brian MacDonald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controls

As you've seen in both the examples so far, when you drag a control from the tool-box onto the design surface, it is generally represented as a visible widget to the user. Some controls, however, are used less for display than for manipulating other objects (for example, database manipulation controls) and these are displayed in a special area at the bottom of the main window.

In any case, every control is identified by a unique ID property. Both Visual Web Developer and Visual Studio will automatically assign an ID to your control as you drag it onto your page. These automatically generated IDs are rarely meaningful, and we suggest that you rename them. For example, while the IDE might name your label "Label2," you will probably find it much more useful to rename that label lblPartialUpdate.

When you click on a control in either Design or Source view, its properties are shown in the Properties window. You can change any property value in the Properties window or directly in Source view, and any changes you make will be reflected in both places immediately.

Organizing the Properties Window

Within the Properties window, you can group properties by category or alphabetically. Figure 2-7 shows the Accessibility, Appearance, and Behavior categories of a button, though there are others. You can click the appropriate buttons in the menu bar to toggle between the Categorized and Alphabetical views. (When organized alphabetically, the IDof the Control is placed, out of order, at the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required