Converting a control to a (1 on 1 web hosting) template By looking

Converting a control to a template By looking at the Login control shown back in Figure 7-4, you can conclude that it must be made of several smaller controls. After all, it contains text, boxes, and a button, all neatly aligned. Where are those individual controls, and what if you want to change one? The answer lies in converting the control from an individual control to a template. As its name implies, the template defines the exact content and position of each item that makes up the control. When you choose Convert to Template, a complex visual control like Login is divided into its individual components. Then, the Convert to Template option on the Common Tasks menu is replaced with a Reset option. The Reset option undoes changes you ve made to the template before converting it back to a single control. Don t click Reset if you intend to keep changes you ve made in a template. Within the template, each control has its own tiny arrow button so tiny you practically need a microscope to see it. Fortunately, you don t have to click the tiny . button. It s just there to identify the upper-left corner of each control in the template. Click anywhere on a control to select it. Figure 7-5 shows an example in which I ve clicked the Log In button in the template. To select multiple controls, click the first one, then hold down the Ctrl key as you click others. The Properties sheet, as always, shows the name and properties of the selected control. Because it s a server control, it won t have the usual HTML tag name in angle brackets. You can change any property of the control in the usual manner. For example, to change the text that appears on the selected button, change the button s Text property. Figure 7-4: Classic scheme applied to the Login1 control. 128 Part II: Building Your Web Site
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision virtual web hosting services

Leave a Reply