ASP 4.0 provides Wizard Control to collect data from the user in an organized way. This control displays WizardStep Controls sequentially and each WizardStep collects logically related data. The Wizard control is based on MultiView and View control, which we discussed the previous lab. The wizard acting as a MultiView can display a WizardStep as a view and allows the user to navigate through all the views (WizardStep) to feed-in their input. In this Lab, we will create a web form with Wizard Control which will collect user input to order Pizza.
ASP is called Active Server Pages. ASP 4.0 suits well with Visual Studio 2010. You can read lgacy articles with ASP 2.0 and Visual Studio 2005.
In ASP 4.0, MultiView and View Control both works together to group the controls in a logical way. One or more View control can stay inside a MultiView Control and at a time MultiView control can show one View. Web Page Designer place neededcontrols inside the View and at runtime, MultiView control can decide which view to show. ActiveViewIndex property of the MultiView Control sets a specific View Control in visible state, or one can also use the method SetActiveView. If we decide not to show any view at all, we can set the ActiveViewIndex Property to -1. In this lab, we will explore how MultiView, and View controls work together.
The Panel Control is container which houses other controls. Properties applied to the Panel control will also applied to all the child controls. For example, if you hide the container, it hides all the controls in it.
• In this tutorial, you will learn how to use Panel Container and add controls to it.
• We will learn about the control alignment how panel control re-arranges the controls when there is no room in a single row.
• The BackImageUrl property which will assign a background image to the Panel Control.
• Then, we will learn how we can show or hide group of controls in a Panel Container.
The Image Control in ASP.Net will not process Click Event and in that case, one can use ImageMap or ImageButton Control. These two controls can also give the click location in terms of X and Y coordinate values and the server can act based on this.
ASP ImageButton control derives from the Image Control and hence it has all the property and behaviour of the Image. The Click event handler will receive the ImageClickEventArgs, and we can query the x and y coordinate of the mouse click from it. This is helpful for the server to know which part of the image user clicked. In this Lab, we will explore ASP.Net’s ImageButton Control.
The Image Control in Asp.Net will render an image in the web browser. WebControl is base for this Image Control, and Image Control is the base class for ImageMap and ImageButton Controls. ImageUrl property tells the control from where it should download image pixels. ImageAlign property helps to align the image along with other html web elements on the page. In this Lab, we will experiment the Image Control.