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

Working with the ASP.NET FormView Control


The ASP.NET FormView control is a data-bound control that renders a single record at a time from its associated data source. It is quite similar to the DetailsView control except that while the DetailsView renders itself into a tabular format, the FormView control requires user-defined templates for rendering. According to the MSDN, "When using the FormView control, you specify templates to display and edit bound values. The templates contain formatting, controls, and binding expressions to create the form. The FormView control is often used in combination with a GridView control for master or detail scenarios."

To use the FormView control, simply drag and drop it from the tool box and then associate the control with a data source. In our example we will take the SqlDataSource control to bind data to the FormView control. You can use an existing data source or create a fresh new one using the smart tag of the control.

As we have seen in Chapter...