13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 6: Standard Web Controls 133BehaviorThe behavioral properties of a web control can influence appearance, but generally addor delete an action associated with the web control. The Behavior properties can alsotransform a web control from one functionality to another. For example, in Chapter 5,you saw that both an Input (Text) form and a TextArea form were used in an application.However, you will not find a TextArea form in the standard web control menu. You coulduse an HTML TextArea form, or you could change the TextBox control so that it behaveslike a TextArea form; in the “Data Display” section you’ll see how that can be done.To see how you can usefully change a TextBox control’s behavior for a data entryinterface, a useful tool is the ToolTip property. Using Visual Studio 2008, you see severaldifferent kinds of tool tips when you pass the mouse pointer over an area containing a tooltip. For example, when you pass the pointer over the Save icon in the menu bar, you geta little message—a tool tip—that lets you know that the icon is for saving your file. Youcan do the same thing for your applications; users appreciate any help they can get. Figure 6-4shows the properties for the TextBox control, and you can see that the ToolTip propertyhas a value set to Data Entry Box.Figure 6-4 Behavior properties change the way a web control acts

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!