Module 10: Data Access in ASP.NET. Overview Overview of the ASP.NET Data Access What is Data Access List of Data Source Control What is Data Bound How.

Slides:



Advertisements
Similar presentations
Internetteknologi (ITNET2) Presentation 21: ASP.NET Advanced.
Advertisements

Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
User Controls, Master Pages, GridView. Content User Controls Styles, Themes, Master Pages Working with Data GridView Muzaffer DOĞAN - Anadolu University2.
Chapter 9 Customizing Data with Web Controls. ASP.NET 2.0, Third Edition2.
IT533 Lecture ASP.NET Controls. Installations Microsoft® SQL Server® 2008 Express.
Unit 5: Building Presentation Layer Applications with ASP.NET 2.0.
ASP.NET Data Binding. Slide 2 Lecture Overview Understanding the ASP.NET data binding model.
1 Chapter 12 Working With Access 2000 on the Internet.
J4www/jea Week 3 Version Slide edits: nas1 Format of lecture: Assignment context: CRUD - “update details” JSP models.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
Building ASP.NET Applications 2 Lecture 3,4 T. Ahlam Algharasi 4 th Level.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Introduction To Form Builder
Some Basic Database Terminology
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
Chapter 8 Binding Data to Web Controls. ASP.NET 2.0, Third Edition2.
Ch6:creating consistent looking web sites. Master pages Master page defines a combination of fixed content and content place holder to hold the web page(.aspx)
1 Presented by Bikash Shrestha. 2 What is ASP.NET or ASP+? ASP.NET/ASP+ is a programming framework built on the common language runtime that can be used.
Chapter 10 Managing Data with ASP.NET. ASP.NET 2.0, Third Edition2.
ASP.NET Part 4 Instructor: Charles Moen CSCI/CINF 4230.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Marc Ziss Z Consulting Code Name 'Oryx' Web application scaffolding Easy to dynamically display pages based on the data model of.
Chapter 71 Building Data-Driven ASP.NET Applications Introduction to ASP.NET By Kathleen Kalata.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Needs for Accessing Database To make your web site more dynamic and maintainable, you can display information on your web pages that are retrieved from.
1 Data Bound Controls II Chapter Objectives You will be able to Use a Data Source control to get data from a SQL database and make it available.
1 Web-Enabled Decision Support Systems Database Connectivity in Web Applications Don McLaughlin IE 423 (304) West.
Ventsislav Popov Crossroad Ltd.. 1. ASP.NET Data Source Controls  SqlDataSource  EntityDataSource  ObjectDataSource 2. Entity Data Model and ADO.NET.
AUTOMATION OF WEB-FORM CREATION - KINNERA ANGADI – MS FINAL DEFENSE GUIDANCE BY – DR. DANIEL ANDRESEN.
Handy separation the report template into pages Handy visual separation of the report template into pages is available in Stimulsoft Reports.Net. You.
Meeting #6 – April 2011 – Web-Technologies Homework Assignments Svetlin Nakov Telerik Corporation
Delivering Excellence in Software Engineering ® EPAM Systems. All rights reserved. Data Binding in ASP.NET.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Chapter 8 Working With Databases in ASP.NET. Listing 8.1 – ShowListControls Uses The SqlDataSource control for estabishing database connectivity and.
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Data Access in ASP.NET 2.0 Bradley Millington Program Manager Web Platform and Tools.
Databases with LINQ. LINQ to SQL LINQ to SQL uses LINQ syntax to query databases. LINQ to SQL classes are automatically generated by the IDE’s LINQ to.
3 Copyright © 2004, Oracle. All rights reserved. Working in the Forms Developer Environment.
TRAINING SESSIONS.NET Controls.  Standard Controls  Label  Textbox  Checkbox  Button, Image Button, Image control  Radio Button  Literal  Hyperlink.
Introduction to Views Stanford Drupal Camp April 6, 2013.
Reference: “ASP.NET 2.0 Illustrated” by Alex Homer and Dave Sussman. -ch3 illustrated book
Ventsislav Popov Crossroad Ltd.. 1. ASP.NET Data Source Controls  SqlDataSource  EntityDataSource  ObjectDataSource 2. Entity Data Model and ADO.NET.
Module 8: Creating User Controls. Overview Adding User Controls to an ASP.NET Web Form Creating User Controls.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Application: Middle Tier Introducing Code-Behind Files, Session State.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
Security Attacks CS 795. Buffer Overflow Problem Buffer overflow Analysis of Buffer Overflow Attacks.
Module 4: Creating a Web Application with Web Forms
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 12 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 12 Accessing.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ADO.NET FUNDAMENTALS BEGINNING ASP.NET 3.5 IN C#.
Data Listing Web Controls MacDonald Ch MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
ASP.NET Data Binding. Slide 2 Lecture Overview Understanding the ASP.NET data binding model.
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
1 CS 3870/CS 5870: Note07 Prog 4. Master Pages Creating a master page based on another master page MainMasterPage –For all Progs and Tests Prog4MasterPage.
SQL-TABLES-DATA GRIDS Tables of Pictures, URL’s Binding data to pages Using the Data Source Configuration Wizard Using the GridView and DetailsView controls.
Creating SQL Database file And Displaying a Database Table in a DataGridView.
Working with Data Lesson 4. Objectives DataSource Controls A requirement for most modern Web sites is that they be dynamic. –Static pages are not often.
Current Popular IT I Pertemuan 5
Introduction to Database Processing with ADO.NET
Project 1 Introduction to HTML.
Working in the Forms Developer Environment
Brief description on how to navigate within this presentation (ppt)
Using List Controls with SQL Server
Database Applications
Web Development Using ASP .NET
Chapter 10 Accessing Database Files
Unit – V Data Controls.
Presentation transcript:

Module 10: Data Access in ASP.NET

Overview Overview of the ASP.NET Data Access What is Data Access List of Data Source Control What is Data Bound How to connect to Database Using GridView to display data Filtering Data Demo

Accessing data with ASP.NET ASP.NET includes features that enable you to add data access to your ASP.NET Web pages with little or no code. You can connect to databases, XML data and files, and business objects as data sources. You can then display data by using a variety of controls that provide great flexibility in how you present data on the page.

ASP.NET Data Access Overview Web applications commonly access data sources for storage and retrieval of dynamic data. You can write code to access data using classes from the System.Data namespace (commonly referred to as ADO.NET) and from the System.Xml namespace. System.DataSystem.Xml This approach was common in previous versions of ASP.NET.

ASP.NET Data Access Overview However, ASP.NET also enables you to perform data binding declaratively. This requires no code at all for the most common data scenarios, including: Selecting and displaying data. Sorting, paging, and caching data. Updating, inserting, and deleting data. Filtering data using run-time parameters. Creating master-detail scenarios using parameters.

ASP.NET Data Access Overview ASP.NET includes two types of server controls that participate in the declarative data binding model: data source controls and data-bound controls. These controls manage the underlying tasks required by the stateless Web model for displaying and updating data in ASP.NET Web pages. As a result, you are not required to understand details of the page request lifecycle just to perform data binding.

Data Source Controls Data source controls are ASP.NET controls that manage the tasks of connecting to a data source and reading and writing data. Data source controls do not render any user interface, but instead act as an intermediary between a particular data store (such as a database, business object, or XML file) and other controls on the ASP.NET Web page. Data source controls enable rich capabilities for retrieving and modifying data, including querying, sorting, paging, filtering, updating, deleting, and inserting.

Example of Data Source Controls ASP.NET includes the following data source controls:

Data-bound Controls Data-bound controls render data as markup to the requesting browser. A data-bound control can bind to a data source control and automatically fetch data at the appropriate time in the page request lifecycle. Data-bound controls can take advantage of the capabilities provided by a data source control including sorting, paging, caching, filtering, updating, deleting, and inserting. A data-bound control connects to a data source control through its DataSourceID property.DataSourceID

Data-bound Controls ASP.NET includes the data-bound controls described in the following table. List Controls Renders data in a variety of lists format. List controls include the BulletedList, CheckBoxList, DropDownList, ListBox, and RadioButtonList controls.BulletedListCheckBoxList DropDownListListBoxRadioButtonList AdRotator Renders advertisements on a page as an image that users can click to go to a URL associated with the advertisement. For more information, see AdRotator Web Server Control.AdRotator Web Server Control DataList Renders data in a table. Each item is rendered using an item template that you define. For more information see the DataList Web Server Control.DataList Web Server Control

Data-bound Controls DetailsView Displays one record at a time in a tabular layout and enables you to edit, delete, and insert records. You can also page through multiple records. For more information see the DetailsView Web Server Control.DetailsView Web Server Control FormView Similar to the DetailsView control, but enables you to define a free-form layout for each record. The FormView control is like a DataList control for a single record. For more information, see FormView Web Server Control.FormView Web Server Control

Data-bound Controls ASP.NET includes the data-bound controls described in the following table. GridView Displays data in a table and includes support for editing, updating, sorting, and paging data without requiring code. Menu Renders data in a hierarchical dynamic menu that can include submenus. For more information, see Menu Web Server Control.Menu Web Server Control

Data-bound Controls Repeater Renders data in a list. Each item is rendered using an item template that you define. For more information, see Repeater Web Server Control.Repeater Web Server Control TreeView Renders data in a hierarchical tree of expandable nodes. For more information, see TreeView Web Server ControlTreeView Web Server Control

Connecting to Microsoft SQL Server Use drag-and-drop editing to create data-access elements that can be used in the page without code. Use the SqlDataSource control to manage data access and binding.SqlDataSource Display data with the GridView control.GridView Configure the GridView control to allow for sorting and paging. Create a filtered query that displays only selected records.

Demo Connecting to Northwind database using Gridview Enable sorting, paging Filtering data Future Lab:

Review Overview of the ASP.NET Data Access What is Data Access List of Data Source Control What is Data Bound How to connect to Database Using GridView to display data Filtering Data