Internetteknologi (ITNET2) Presentation 21: ASP.NET Advanced.

Slides:



Advertisements
Similar presentations
Malek Kemmou Technology Architect, Application Platform Microsoft Middle East and Africa Overview of ASP.NET 2.0.
Advertisements

Sofia, Bulgaria | 9-10 October Developing An Advanced ASP.NET Server Control With Rich Design-Time Goksin Bakir Yage Ltd Microsoft Regional Director, MEA.
ASP.NET Ajax Supplementary Tutorial. Why Use ASP.NET AJAX? - I ASP.NET AJAX enables you to build rich Web applications that have many advantages over.
Final Presentation WINTER 2009 – SUMMER 2009 PRESENTED BY: George Kour Hany Danial SUPERVISOR: Victor Kulikov Networked Software Systems Laboratory DEPARTMENT.
Master Pages, User Controls, Site Maps, Localization Svetlin Nakov Telerik Corporation
Advanced Performance Techniques in ASP.NET 2.0 William Zhang, Ph.D. Senior Consultant Microsoft Consulting Services.
Module 8: Creating User Controls. Overview Adding User Controls to an ASP.NET Web Form Creating User Controls.
Direct Data Access, Data Binding. Content Direct Data Access Data Binding Muzaffer DOĞAN - Anadolu University2.
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.
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.
Introduction to Database Processing with ADO.NET.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
EE-Video Yossi Biton Nir Yakobovski Outline  The concept  Main functionality  Challenges & Solutions  Design considerations Layers Class diagram.
From VS C# 2010 Programming, John Allwork 1 VS2010 C# Programming - DB intro 1 Topics – Database Relational - linked tables SQL ADO.NET objects Referencing.
Some Basic Database Terminology
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
Chapter 8 Binding Data to Web Controls. ASP.NET 2.0, Third Edition2.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
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)
CIS ASP Tim Brown. .html www .html www .html www.
Chapter 10 Managing Data with ASP.NET. ASP.NET 2.0, Third Edition2.
Yahoo! User Interface (YUI) Library Natly Mekdara.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
10-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
ASP.Net Web Applications. Characteristics of a typical data driven web application Web Server HTML Graphics Active-X Java Applets HTTP Request ADO / JDBC.
Fundamentals of Database Chapter 7 Database Technologies.
Overview of Data Access MacDonald Ch. 15 MIS 324 Professor Sandvig.
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.
Ventsislav Popov Crossroad Ltd.. 1. ASP.NET Data Source Controls  SqlDataSource  EntityDataSource  ObjectDataSource 2. Entity Data Model and ADO.NET.
Handy separation the report template into pages Handy visual separation of the report template into pages is available in Stimulsoft Reports.Net. You.
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.
NET-AUCTION This online auction project Directed by: Mr. Maxim Gurevich Submitted by: Yuri Kipnis Alex Scheotkin Alex Scheotkin.
User Interface Programming in C#: Model-View-Controller Chris North CS 3724: HCI.
Chapter 8 Working With Databases in ASP.NET. Listing 8.1 – ShowListControls Uses The SqlDataSource control for estabishing database connectivity and.
WaveMaker Visual AJAX Studio 4.0 Training Basics: Building Your First Application Binding Basics.
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.
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.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 12 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 12 Accessing.
WEB SERVER SOFTWARE FEATURE SETS
ADO.NET FUNDAMENTALS BEGINNING ASP.NET 3.5 IN C#.
1 CS387/CS587: Note04 Lab 3. 2 Master Page All Web pages will be similar Should be created before other web pages Add New Items Controls on the Master.
Marco Bellinaso Senior Trainer & Consultant Code Architects Srl Building Dynamic Navigation Systems with Visual Studio 2005 and ASP.NET 2.0.
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.
Support ObjectDataSource DataSet Designer / TableAdapters Extending TableAdapters Smart Custom Objects.
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.
Chapter 9 Working with Databases. Copyright © 2011 Pearson Addison-Wesley Introduction In this chapter you will learn: – Basic database concepts – How.
Preface IIntroduction Course Objectives I-2 Course Content I-3 1Introduction to Oracle Reports Developer Objectives 1-2 Business Intelligence 1-3 Enterprise.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India
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.
Chapter 2 Creating Website with Web Forms. Objectives Understand the different project types and templates when building ASP.NET web sites. The different.
Introduction to Database Processing with ADO.NET
Current Popular IT I Pertemuan 5
Introduction to Database Processing with ADO.NET
Brief description on how to navigate within this presentation (ppt)
Chapter 10 ADO.
Database Applications
Chapter 10 Accessing Database Files
NAVIGATION CONTROLS.
The need for server pages
Presentation transcript:

Internetteknologi (ITNET2) Presentation 21: ASP.NET Advanced

Ingeniørhøjskolen i Århus Slide 2 Agenda User Controls Master & Content Pages Data Binding (Databases, Collections & XML)

Ingeniørhøjskolen i Århus Slide 3 What is a User Control? User controls simplify the reuse of code and UI components within a Web application A user control is a user-defined Web server control with an.ascx extension Contains HTML, but not the,, or tags or Contains code to handle its own events

Ingeniørhøjskolen i Århus Slide 4 Why Use User Controls? Reuse user interface and code Must live in Web form! Page2.aspx Control1.ascx Page1.aspx Page3.aspx Application AApplication B

Ingeniørhøjskolen i Århus Slide 5 Master & Content Pages Structuring Mechanism Replaces “Include” Master Pages “includes” different Content Pages Master Pages attributes reachable from Content Pages Master.FooterText = "This is a custom footer"; AdRotator ad = (AdRotator)Master.FindControl("MyAdRotator");

Ingeniørhøjskolen i Århus Slide 6 Master & Content Pages Replacing placeholder content

Ingeniørhøjskolen i Århus Slide 7 Data Binding Goal: –To able to connect to data sources to obtain data –Relational Databases (SQL) –Object Databases and O/R mappers –XML files

Ingeniørhøjskolen i Århus Slide 8 Data Sources SqlDataSource –Enables binding to a SQL database represented by an ADO.NET provider, such as Microsoft™ SQL Server, OLEDB, ODBC, or Oracle. ObjectDataSource –Enables binding to a middle-tier object such as a data access layer or business component. AccessDataSource –Enables binding to a Microsoft™ Access (Jet) database. XmlDataSource –Enables binding to an XML file or document. SiteMapDataSource –Enables binding to the hierarchy exposed by an ASP.NET 2.0 site navigation provider.

Ingeniørhøjskolen i Århus Slide 9 Data Bound Controls GridView –Renders data in a grid format. This control is an evolution of the DataGrid control, and can automatically take advantage of data source capabilities. DetailsView –Renders a single data item in a table of label/value pairs, similar to the form view in Microsoft™ Access. This control can also automatically take advantage of data source capabilities. FormView –Renders a single data item at a time in a form defined by a custom template. Renders a single data item in a table of label/value pairs, similar to the form view in Microsoft™ Access. This control can also automatically take advantage of data source capabilities. TreeView –Renders data in a hierarchical tree view of expandable nodes. Menu –Renders data in a hierarchical dynamic menu (including flyouts).

Ingeniørhøjskolen i Århus Slide 10 Displaying Data from a RDBMS in a Grid View 1.Create a DB 2.Create a Connection to DB (Web.Config) 3.Create a SQL Data Source & Grid View <add name="Pubs“ connectionString="Server=(local);Integrated Security=True;Database=pubs;" providerName="System.Data.SqlClient" /> " />

Ingeniørhøjskolen i Århus Slide 11 Paging & Sorting Paging is supported at GUI Sorting is supported at GUI Columns may be automatic or manually set up … …

Ingeniørhøjskolen i Århus Slide 12 Using a DAL public class MyDataLayer { public DataView GetRecords(); public DataView GetRecordsByCategory(String categoryName); public DataView GetRecordByID(int recordID); public int UpdateRecord(int recordID, String recordData); public int DeleteRecord(int recordID); public int InsertRecord(int recordID, String recordData); } Use an object as a DAL for controlled access to DB Server Control (ObjectDataSource) using MyDataLayer

Ingeniørhøjskolen i Århus Slide 13 Using a Business Logic Layer Provides us with a nice OO decoupling Value objects must have get/set methods

Ingeniørhøjskolen i Århus Slide 14 Using the VS 5.0 DataSet Wizard DAL / BLL is tedious work VS 5.0 has wizard

Ingeniørhøjskolen i Århus Slide 15 Binding the DataTable to View Control A DataTable and a TableAdapter is constructed Add an ObjectDataSource –TypeName="DataSet1TableA dapters.personTableAdapter” Add a GridView and/or a FormView Server Control