Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ
Tải xuống
Overview of Data Access DetailsView FormView directed by Repeater directed by ListView From the Library of Wow! eBook Using DataBound Controls 345 | 344 CHAPTER 8 Overview of Data Access div class floater h3 DetailsView h3 asp DetailsView id DetailsView1 DataSourceId srcMovies AllowPaging true Runat server div div class floater h3 FormView h3 asp FormView id FormView1 DataSourceId srcMovies AllowPaging true Runat server ItemTemplate Eval Title i directed by i Eval Director ItemTemplate asp FormView div br style clear both div class floater h3 Repeater h3 asp Repeater id Repeater1 DataSourceId srcMovies Runat server ItemTemplate Eval Title i directed by i Eval Director ItemTemplate asp Repeater div div class floater h3 ListView h3 asp ListView id ListView1 DataSourceId srcMovies Runat server From the Library of Wow eBook Using DataBound Controls 345 LayoutTemplate div id itemContainer runat server div asp DataPager ID pager1 PageSize 3 runat server Fields asp NumericPagerField Fields asp DataPager LayoutTemplate ItemTemplate Eval Title i directed by i Eval Director ItemTemplate asp ListView div asp SqlDataSource id srcMovies ConnectionString Data Source . SQLExpress AttachDbFilename DataDirectory MyDatabase.mdf Integrated Security True User Instance True SelectCommand SELECT TOP 5 Title Director FROM Movies Runat server form body html For the moment don t worry too much about formatting the controls. Each of the tabular DataBound controls supports an abundance of properties that modify the control s behavior and appearance. The GridView control gets a detailed examination in Chapter 11 Using the GridView Control. The DetailsView and FormView controls are covered in Chapter 12 Using the DetailsView and FormView Controls. The focus of Chapter 13 Using the Repeater and DataList Controls is the Repeater and DataList controls. Finally the new ListView control is discussed in Chapter 14 Using the ListView and DataPager Controls. Working with Hierarchical DataBound Controls A hierarchical DataBound control can display nested data items. For example you can use hierarchical DataBound controls to display the folder and .