INT422 Internet III Web Programming on Windows - PowerPoint PPT Presentation

1 / 17
About This Presentation
Title:

INT422 Internet III Web Programming on Windows

Description:

INT422. INT422 Internet III. Web Programming on Windows. Data Binding. Week 5. INT422 ... of data sources other than database-related data, like themes ... – PowerPoint PPT presentation

Number of Views:31
Avg rating:3.0/5.0
Slides: 18
Provided by: team61
Category:

less

Transcript and Presenter's Notes

Title: INT422 Internet III Web Programming on Windows


1
INT422 Internet III Web Programming on
Windows
  • Data Binding

2
What is data binding?
  • Three-step process
  • Establish path to a data source (server)
  • Request specific data
  • Move the data into a repeating control (binding)

3
Use a SqlDataSource control
  • Does not have a GUI component
  • It is a data object

4
Configure the DataSource
  • Just like GUI web controls is many ways
  • Launches a wizard to help you define all the
    aspects of the DataSource

5
Choose from existing or new connection
6
Creating a new connection
7
Saving the connection details(in your web.config)
8
Select what data you wish to get
9
Perhaps filtered to reduce data
10
And organized by order
11
Preview results
12
Add a repeating web control
  • Listbox
  • DropDownList
  • CheckboxList
  • RadioButtonList
  • GridView
  • Repeater
  • etc.

13
Select the Data Source for the control
14
Choose what goes where
15
When the page loads, data binds
16
Data selection can be parameterized
  • Where can be linked to other control(s) that
    supply value for data filter
  • Need to declare a new DataBind method invocation
    on the web control
  • For deeper control, use data controls (future
    topic) or ObjectDataSource

17
Bindable controls
  • Not only display data can be DataBound
  • Many bindable controls handle colour, visibility,
    images and many other bindable properties
  • This makes theming easy by binding to common
    style elements using other kinds of data sources
    other than database-related data, like themes
Write a Comment
User Comments (0)
About PowerShow.com