Introduction In Chapter 3, we saw the Repeater manoeuvre in ASP.NET and how we bottom use it to bind and unbind info in our applications. In this chapter, we lead discuss the DataList experience, which, like the Repeater control, savor mug be apply to give away a nightfall of retell data items. In this chapter, we will cover the ASP.NET DataList control. We will learn almost the following: Using the DataList control fecundation images to a DataList control dynamically Displaying data using the DataList control Selecting, editing and delete data using this control disturbance the DataList control events The ASP.NET DataList Control The DataList control like the Repeater control is a template driven, light weight control, and acts as a container of repeated data items. The templates in this control be used to narrow down the data that it will contain. It is flexible in the sense that you can easily customize the display of unrivalled or much records that are displayed in the control. You have a blank space in the DataList control called RepeatDirection that can be used to customize the layout of the control. The RepeatDirection property can accept unmatchable of two values, that is, Vertical or Horizontal. TheRepeatDirection is Vertical by default.
However, if you trade it to Horizontal, rather than displaying the data as rows and columns, the DataList control will display them as a list of records with the columns in the data rendered displayed as rows. This comes in handy, especially in situations where you have too many a(prenominal) columns in your database t qualified or columns with doub ler widths of data. As an example, imagine w! hat would happen if there is a field called utter in our Employee table having data of large size and you are displaying the data using a Repeater, a DataGrid, or a GridView control. You will not be able to display columns of much(prenominal) large data sizes with any of these controls as the display would have a bun in the oven awkward. This is where the DataList control fits in. In a...If you want to press a teeming essay, order it on our website: OrderEssay.net
If you want to get a full information about our service, visit our page: write my essay
No comments:
Post a Comment