SlideShare a Scribd company logo
Introducing Datacontrols by Praveen Nandagiri
Agenda Data Binding with No Code Grid View Control Data list Control Repeater Control Creating a master page and apply to other content pages
Binding Data to Controls Data controls are the controls which accept  data source and show  the data to the viewer or programmer. Here data source may be a database , xml file or any other file.
Data Source Controls A family of controls that  assist in data binding  and  it acts like  Middleman between data bound controls  and data sources Types of Data Source Controls a)  Tabular SqlDataSource AccessDataSource ObjectDataSource b)   Hierarchical XmlDataSource SiteMapDataSource
Here we have to use ADO.Net to bind data to the datacontrols . In this we have to use sql data adapter and dataset to bind to the data to the control  which are in  ADO.NET . When we update and delete data from database ,we have to use  Sql command which is in ADO.NET.
1)Grid view GridView control is a successor to the ASP.NET 1.X DataGrid control. It provides more flexibility in displaying and working with data from your database in comparison with any other controls. The GridView control enables you to connect to a datasource and display data is tabular format, however you have bunch of options to customize the look and feel.  When it is rendered on the page, generally it is implemented through <table> HTML tag. Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <tahle> tag.
Here this is  sourse of the aspx page and it shows how to drag the gridview  from toolbox to the page
Here this is  sourse of the aspx page and it shows how  to bind the data to the gridview.
Here this is  sourse of the aspx page and it shows how to take  edit and delete buttons.
Here this is  sourse of the aspx page and it shows how to give a confirmation message  when delete the record .
Here this is cs file of the aspx page and it shows how to bind data to gridview control by using c#  code
Here this is xml file and it shows where it is located and how it looks(In the form of tags).
Here this is cs file of the aspx page and it shows how to bind data to gridview control by using c#  code
2)Data list  The DataList control is, like the Repeater control, used to display a repeated list of items that are bound to the control.  However, the DataList control adds a table around the data items by default. The DataList control may be bound to a database table, an XML  file, or another list of items.
Here this is cs file of the aspx page and it shows how to bind data to gridview control by using c#  code
Here this is sourse file of the aspx page and it shows header ,Item,footer templates of the datalist control
Here this is cs file of the aspx page and it shows how to bind data to datalist control by using c#  code
3)Reapeter The Repeater control is used to display a repeated list of items that are bound to the control.  The Repeater control may be bound to a database table, an XML file, or another list of items.
Here this is  sourse  of the aspx page and it shows how to drag the control from toolbox to page
Here this is sourse  of the aspx page and it shows header template of the repeater
Here this is sourse of the aspx page and it shows item,footer templates of the repeater control
Here this is cs file of the aspx page and it shows how to bind data to repeater control by using c#  code
Features & Differences between Gridview,DataList and Repeater controls  DataGrid and DataList controls are derived from the WebControl class, while the Repeater control is derived from the Control class.  The WebControl class contains a number of aesthetic properties, such as BackColor, ForeColor, CssClass, BorderStyle and so on. In ASP .NET basically there are three kinds of the Data Presentation Controls. a) GridView or DataGrid  b) DataList   c) Repeater
List of different  abilities and features  of Repeater Control, Datalist Control and GridView  Control  Features of a GridView:   Displays data as a table Updateable Control over Alternate item Header Footer Colors, font, borders, etc. Paging
b)Features of DataList:   Directional rendering Good for columns Item as cell Alternate item Updateable C)Features of Repeater: List format No default output More control More complexity Item as row Not updateable
Master page A master page is an ASP.NET file with the extension .master (for example, MySite.master) with a predefined layout that can include static text, HTML elements, and server controls. The master page is identified by a special  @ Master  directive that replaces the  @ Page  directive that is used for ordinary .aspx pages.  The directive looks like the following. <%@ Master Language=&quot;C#&quot; %>
The @ Master directive can contain most of the same directives that a  @ Control  directive can contain. For example, the following master-page directive includes the name of a code-behind file, and assigns a class name to the master page. <%@ Master Language=&quot;C#&quot;  CodeFile=&quot;MasterPage.master.cs&quot;  Inherits=&quot;MasterPage&quot; %> In addition to the @ Master directive, the master page also contains all of the top-level HTML elements for a page, such as html, head, and form. For example, on a master page you might use an HTML table for the layout, an img element for your company logo, static text for the copyright notice, and server controls to create standard navigation for your site. You can use any HTML and any ASP.NET elements as part of your master page.
Replaceable Content Placeholders In addition to static text and controls that will appear on all pages, the master page also includes one or more  ContentPlaceHolder  controls. These placeholder controls define regions where replaceable content will appear. In turn, the replaceable content is defined in content pages. After you have defined the  ContentPlaceHolder  controls, a master page might look like the following .
<%@ Master Language=&quot;C#&quot; %>  <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot;  &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;>  <html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; > <head runat=&quot;server&quot; > <title>Master page title</title>  </head> <body> <form id=&quot;form1&quot; runat=&quot;server&quot;>  <table> <tr>  <td><asp:contentplaceholder  id=&quot;Main&quot;  runat=&quot;server&quot; /></td> <td><asp:contentplaceholder  id=&quot;Footer&quot;  runat=&quot;server&quot; /></td>  </tr>  </table>  </form>  </body> </html>
Thank You !

More Related Content

What's hot (20)

PDF
Visual Basic 6.0
Anjan Mahanta
 
PPTX
PHP FUNCTIONS
Zeeshan Ahmed
 
PPTX
Css selectors
Parth Trivedi
 
PPT
Awt controls ppt
soumyaharitha
 
PDF
jQuery for beginners
Arulmurugan Rajaraman
 
PPTX
Hibernate ppt
Aneega
 
PPTX
Java package
CS_GDRCST
 
PPTX
compiler ppt on symbol table
nadarmispapaulraj
 
PPT
Visual basic
umesh patil
 
PPTX
Software architecture
Ahmad Raza Aslam
 
PPT
11. Storage and File Structure in DBMS
koolkampus
 
PDF
Bootstrap
Jadson Santos
 
PPTX
Inheritance in c++
Vishal Patil
 
PDF
Introduction to oops concepts
Nilesh Dalvi
 
PPT
Introduction to CSS
Amit Tyagi
 
PPTX
html-table
Dhirendra Chauhan
 
PDF
Unit 2
pm_ghate
 
PPT
ASP.NET 10 - Data Controls
Randy Connolly
 
PPTX
Decomposition using Functional Dependency
Raj Naik
 
PDF
Python programming : Classes objects
Emertxe Information Technologies Pvt Ltd
 
Visual Basic 6.0
Anjan Mahanta
 
PHP FUNCTIONS
Zeeshan Ahmed
 
Css selectors
Parth Trivedi
 
Awt controls ppt
soumyaharitha
 
jQuery for beginners
Arulmurugan Rajaraman
 
Hibernate ppt
Aneega
 
Java package
CS_GDRCST
 
compiler ppt on symbol table
nadarmispapaulraj
 
Visual basic
umesh patil
 
Software architecture
Ahmad Raza Aslam
 
11. Storage and File Structure in DBMS
koolkampus
 
Bootstrap
Jadson Santos
 
Inheritance in c++
Vishal Patil
 
Introduction to oops concepts
Nilesh Dalvi
 
Introduction to CSS
Amit Tyagi
 
html-table
Dhirendra Chauhan
 
Unit 2
pm_ghate
 
ASP.NET 10 - Data Controls
Randy Connolly
 
Decomposition using Functional Dependency
Raj Naik
 
Python programming : Classes objects
Emertxe Information Technologies Pvt Ltd
 

Viewers also liked (17)

PPTX
ASP.NET Web API
habib_786
 
PPTX
The ASP.NET Web API for Beginners
Kevin Hazzard
 
PPTX
data controls in asp.net
subakrish
 
PPT
Asp.net
Dinesh kumar
 
PPT
Nnnnnn
nautami
 
PPSX
ASP.NET Web form
Md. Mahedee Hasan
 
PDF
C# ASP.NET WEB API APPLICATION DEVELOPMENT
Dr. Awase Khirni Syed
 
PPTX
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 
PPT
Asp.net basic
Neelesh Shukla
 
PPTX
Ch 7 data binding
Madhuri Kavade
 
PPTX
ASP.NET Presentation
dimuthu22
 
PPT
Server Controls of ASP.Net
Hitesh Santani
 
PPTX
Asp.NET Validation controls
Guddu gupta
 
PPTX
Web forms in ASP.net
Madhuri Kavade
 
PPT
Concepts of Asp.Net
vidyamittal
 
PPT
ASP.NET Tutorial - Presentation 1
Kumar S
 
PPTX
Introduction to asp.net
Melick Baranasooriya
 
ASP.NET Web API
habib_786
 
The ASP.NET Web API for Beginners
Kevin Hazzard
 
data controls in asp.net
subakrish
 
Asp.net
Dinesh kumar
 
Nnnnnn
nautami
 
ASP.NET Web form
Md. Mahedee Hasan
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
Dr. Awase Khirni Syed
 
ASP.NET Web API and HTTP Fundamentals
Ido Flatow
 
Asp.net basic
Neelesh Shukla
 
Ch 7 data binding
Madhuri Kavade
 
ASP.NET Presentation
dimuthu22
 
Server Controls of ASP.Net
Hitesh Santani
 
Asp.NET Validation controls
Guddu gupta
 
Web forms in ASP.net
Madhuri Kavade
 
Concepts of Asp.Net
vidyamittal
 
ASP.NET Tutorial - Presentation 1
Kumar S
 
Introduction to asp.net
Melick Baranasooriya
 
Ad

Similar to Data controls ppt (20)

PPT
Asp.net architecture
Iblesoft
 
PPT
Chapter12 (1)
Rajalaxmi Pattanaik
 
PDF
Step by Step Asp.Net GridView Tutorials
Nilesh kumar Jadav
 
DOCX
Grid view control
Paneliya Prince
 
PPTX
Master Pages In Asp.net
parallelminder
 
PPT
Intro To Asp Net And Web Forms
SAMIR BHOGAYTA
 
PPS
11 asp.net session16
Niit Care
 
PDF
Master Pages And Navigation
Alfredo Cancino
 
DOC
The most basic inline tag
April Anne Emmanuel
 
PPTX
Walther Ajax4
rsnarayanan
 
PPTX
Development In ASP.NET by Tanzim Saqib
guestf8f959
 
DOCX
Tutorial mvc (pelajari ini jika ingin tahu mvc) keren
Sony Suci
 
PPTX
AdRotator and AdRepeater Control in Asp.Net for Msc CS
Thanveen
 
PPTX
What's new in ASP.NET 4
Robert MacLean
 
PPTX
Microsoft asp.net online training
training3
 
PPTX
Microsoft asp.net online training
training13acutesoft
 
PPT
ASP.NET 08 - Data Binding And Representation
Randy Connolly
 
PPTX
Asp.net
Anchit Rajawat
 
ZIP
ASP.Net Presentation Part1
Neeraj Mathur
 
Asp.net architecture
Iblesoft
 
Chapter12 (1)
Rajalaxmi Pattanaik
 
Step by Step Asp.Net GridView Tutorials
Nilesh kumar Jadav
 
Grid view control
Paneliya Prince
 
Master Pages In Asp.net
parallelminder
 
Intro To Asp Net And Web Forms
SAMIR BHOGAYTA
 
11 asp.net session16
Niit Care
 
Master Pages And Navigation
Alfredo Cancino
 
The most basic inline tag
April Anne Emmanuel
 
Walther Ajax4
rsnarayanan
 
Development In ASP.NET by Tanzim Saqib
guestf8f959
 
Tutorial mvc (pelajari ini jika ingin tahu mvc) keren
Sony Suci
 
AdRotator and AdRepeater Control in Asp.Net for Msc CS
Thanveen
 
What's new in ASP.NET 4
Robert MacLean
 
Microsoft asp.net online training
training3
 
Microsoft asp.net online training
training13acutesoft
 
ASP.NET 08 - Data Binding And Representation
Randy Connolly
 
ASP.Net Presentation Part1
Neeraj Mathur
 
Ad

More from Iblesoft (16)

PPT
Ms sql server ii
Iblesoft
 
PPT
MS SQL Server 1
Iblesoft
 
PPTX
Master pages ppt
Iblesoft
 
DOCX
State management
Iblesoft
 
PPTX
State management
Iblesoft
 
PPT
Validation controls ppt
Iblesoft
 
PPT
Controls
Iblesoft
 
PPT
Ado.net
Iblesoft
 
PPT
Generics n delegates
Iblesoft
 
PPT
Ajaxppt
Iblesoft
 
PPTX
Microsoft.net architecturte
Iblesoft
 
PPTX
Generics
Iblesoft
 
PPTX
Delegates and events
Iblesoft
 
PPT
Javascript
Iblesoft
 
PPT
Html ppt
Iblesoft
 
PPT
Exception handling
Iblesoft
 
Ms sql server ii
Iblesoft
 
MS SQL Server 1
Iblesoft
 
Master pages ppt
Iblesoft
 
State management
Iblesoft
 
State management
Iblesoft
 
Validation controls ppt
Iblesoft
 
Controls
Iblesoft
 
Ado.net
Iblesoft
 
Generics n delegates
Iblesoft
 
Ajaxppt
Iblesoft
 
Microsoft.net architecturte
Iblesoft
 
Generics
Iblesoft
 
Delegates and events
Iblesoft
 
Javascript
Iblesoft
 
Html ppt
Iblesoft
 
Exception handling
Iblesoft
 

Recently uploaded (20)

PDF
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
PPTX
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
PPTX
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
PPTX
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
PDF
Introduction presentation of the patentbutler tool
MIPLM
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PPTX
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
PPTX
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 
Android Programming - Basics of Mobile App, App tools and Android Basics
Kavitha P.V
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
EDUCATIONAL MEDIA/ TEACHING AUDIO VISUAL AIDS
Sonali Gupta
 
Difference between write and update in odoo 18
Celine George
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
How to Create Odoo JS Dialog_Popup in Odoo 18
Celine George
 
How to Create a Customer From Website in Odoo 18.pptx
Celine George
 
DAY 1_QUARTER1 ENGLISH 5 WEEK- PRESENTATION.pptx
BanyMacalintal
 
HUMAN RESOURCE MANAGEMENT: RECRUITMENT, SELECTION, PLACEMENT, DEPLOYMENT, TRA...
PRADEEP ABOTHU
 
Introduction presentation of the patentbutler tool
MIPLM
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
How to Send Email From Odoo 18 Website - Odoo Slides
Celine George
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
AI-Powered-Visual-Storytelling-for-Nonprofits.pdf
TechSoup
 
Identifying elements in the story. Arrange the events in the story
geraldineamahido2
 

Data controls ppt

  • 1. Introducing Datacontrols by Praveen Nandagiri
  • 2. Agenda Data Binding with No Code Grid View Control Data list Control Repeater Control Creating a master page and apply to other content pages
  • 3. Binding Data to Controls Data controls are the controls which accept data source and show the data to the viewer or programmer. Here data source may be a database , xml file or any other file.
  • 4. Data Source Controls A family of controls that assist in data binding and it acts like Middleman between data bound controls and data sources Types of Data Source Controls a) Tabular SqlDataSource AccessDataSource ObjectDataSource b) Hierarchical XmlDataSource SiteMapDataSource
  • 5. Here we have to use ADO.Net to bind data to the datacontrols . In this we have to use sql data adapter and dataset to bind to the data to the control which are in ADO.NET . When we update and delete data from database ,we have to use Sql command which is in ADO.NET.
  • 6. 1)Grid view GridView control is a successor to the ASP.NET 1.X DataGrid control. It provides more flexibility in displaying and working with data from your database in comparison with any other controls. The GridView control enables you to connect to a datasource and display data is tabular format, however you have bunch of options to customize the look and feel. When it is rendered on the page, generally it is implemented through <table> HTML tag. Its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc. are implemented through style properites of <tahle> tag.
  • 7. Here this is sourse of the aspx page and it shows how to drag the gridview from toolbox to the page
  • 8. Here this is sourse of the aspx page and it shows how to bind the data to the gridview.
  • 9. Here this is sourse of the aspx page and it shows how to take edit and delete buttons.
  • 10. Here this is sourse of the aspx page and it shows how to give a confirmation message when delete the record .
  • 11. Here this is cs file of the aspx page and it shows how to bind data to gridview control by using c# code
  • 12. Here this is xml file and it shows where it is located and how it looks(In the form of tags).
  • 13. Here this is cs file of the aspx page and it shows how to bind data to gridview control by using c# code
  • 14. 2)Data list The DataList control is, like the Repeater control, used to display a repeated list of items that are bound to the control. However, the DataList control adds a table around the data items by default. The DataList control may be bound to a database table, an XML file, or another list of items.
  • 15. Here this is cs file of the aspx page and it shows how to bind data to gridview control by using c# code
  • 16. Here this is sourse file of the aspx page and it shows header ,Item,footer templates of the datalist control
  • 17. Here this is cs file of the aspx page and it shows how to bind data to datalist control by using c# code
  • 18. 3)Reapeter The Repeater control is used to display a repeated list of items that are bound to the control. The Repeater control may be bound to a database table, an XML file, or another list of items.
  • 19. Here this is sourse of the aspx page and it shows how to drag the control from toolbox to page
  • 20. Here this is sourse of the aspx page and it shows header template of the repeater
  • 21. Here this is sourse of the aspx page and it shows item,footer templates of the repeater control
  • 22. Here this is cs file of the aspx page and it shows how to bind data to repeater control by using c# code
  • 23. Features & Differences between Gridview,DataList and Repeater controls DataGrid and DataList controls are derived from the WebControl class, while the Repeater control is derived from the Control class. The WebControl class contains a number of aesthetic properties, such as BackColor, ForeColor, CssClass, BorderStyle and so on. In ASP .NET basically there are three kinds of the Data Presentation Controls. a) GridView or DataGrid b) DataList c) Repeater
  • 24. List of different abilities and features of Repeater Control, Datalist Control and GridView Control Features of a GridView: Displays data as a table Updateable Control over Alternate item Header Footer Colors, font, borders, etc. Paging
  • 25. b)Features of DataList: Directional rendering Good for columns Item as cell Alternate item Updateable C)Features of Repeater: List format No default output More control More complexity Item as row Not updateable
  • 26. Master page A master page is an ASP.NET file with the extension .master (for example, MySite.master) with a predefined layout that can include static text, HTML elements, and server controls. The master page is identified by a special @ Master directive that replaces the @ Page directive that is used for ordinary .aspx pages. The directive looks like the following. <%@ Master Language=&quot;C#&quot; %>
  • 27. The @ Master directive can contain most of the same directives that a @ Control directive can contain. For example, the following master-page directive includes the name of a code-behind file, and assigns a class name to the master page. <%@ Master Language=&quot;C#&quot; CodeFile=&quot;MasterPage.master.cs&quot; Inherits=&quot;MasterPage&quot; %> In addition to the @ Master directive, the master page also contains all of the top-level HTML elements for a page, such as html, head, and form. For example, on a master page you might use an HTML table for the layout, an img element for your company logo, static text for the copyright notice, and server controls to create standard navigation for your site. You can use any HTML and any ASP.NET elements as part of your master page.
  • 28. Replaceable Content Placeholders In addition to static text and controls that will appear on all pages, the master page also includes one or more ContentPlaceHolder controls. These placeholder controls define regions where replaceable content will appear. In turn, the replaceable content is defined in content pages. After you have defined the ContentPlaceHolder controls, a master page might look like the following .
  • 29. <%@ Master Language=&quot;C#&quot; %> <!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.1//EN&quot; &quot;http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd&quot;> <html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; > <head runat=&quot;server&quot; > <title>Master page title</title> </head> <body> <form id=&quot;form1&quot; runat=&quot;server&quot;> <table> <tr> <td><asp:contentplaceholder id=&quot;Main&quot; runat=&quot;server&quot; /></td> <td><asp:contentplaceholder id=&quot;Footer&quot; runat=&quot;server&quot; /></td> </tr> </table> </form> </body> </html>