Book Image

ASP.NET Data Presentation Controls Essentials

By : Joydip Kanjilal
Book Image

ASP.NET Data Presentation Controls Essentials

By: Joydip Kanjilal

Overview of this book

<p class="MsoNormal"><span class="postbody">The ASP.NET Data Presentation Controls are server controls to which you can bind data to organize and display it in different ways.<o:p></o:p></span></p> <p class="MsoNormal"><span>This book shows you how to get the most from these controls to easily display and manage complex data in your web applications. It takes you through each of the major data presentation controls in ASP.NET, gets you started using them, and then shows you how to use them in your applications for managing your data.<span></span><o:p></o:p></span></p>
Table of Contents (14 chapters)
ASP.NET Data Presentation Controls Essentials
Credits
About the Author
Acknowledgements
About the Reviewers
Preface

The ASP.NET List Controls


The List controls display a list of data items from where the user can select one or more data items. These are all derived from the ListControl base class due to which they have a common set of properties and methods. You can bind data to any of the above controls using the DataSource property. In binding data to these controls, you can have two approaches, the declarative data binding approach and the programmatic data binding approach.

Note

Note that while you use the declarative approach from your HTML source code mode or in the design view mode and you hardly require any code to bind data to the controls, you use the programmatic approach to accomplish the same task from your code behind file. The declarative approach comes in handy in situations where you need not, or want to avoid writing code to bind data to the controls of your web form. However, you can have more control and provide more flexibility or customization when you do the same programmatically...