Module 4: Creating a Web Application with Web Forms

Slides:



Advertisements
Similar presentations
Chapter 10 Database Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
Advertisements

Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
11 ASP.NET Slides based off:. 22 B ACKGROUND - W EB A RCHITECTURE Web Server PC/Mac/Unix/... + Browser Client Server Request:
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Performed by:Gidi Getter Svetlana Klinovsky Supervised by:Viktor Kulikov 08/03/2009.
Introduction to ASP.Net ISYS 350. ASP.NET ASP.NET is a server-side technology for creating dynamic web pages. ASP.NET allows you to use a selection of.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
Microsoft ® Official Course Monitoring and Troubleshooting Custom SharePoint Solutions SharePoint Practice Microsoft SharePoint 2013.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
ASP.NET
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
ASP.Net, Web Forms and Web Controls 1 Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
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.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital Media.
ASP Hello, world. ServerClient Response Request A form.
INSPIRING CREATIVE AND INNOVATIVE MINDS Module 4: Adding Code to a Microsoft ASP.NET Web Form Implementing Code-Behind Pages Adding Event Procedures to.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
Introduction to ASP.NET 1www.tech.findforinfo.com.
Session 08: Architecture Controllers or Managers Graphical User Interface (GUI) FEN AK - IT Softwarekonstruktion.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
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.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
1 CS 3870/CS 5870 Note04 Session Variables and Post Back.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Unit 3: Adding Code to a Microsoft ASP.NET Web Form.
ASP.NET The Clock Project. The ASP.NET Clock Project The ASP.NET Clock Project is the topic of Chapter 23. By completing the clock project, you will learn.
Overview of Previous Lesson(s) Over View  SDI programs  The Application Wizard can generate single-document interface (SDI) applications that work.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Database Handling, Sessions, and AJAX. Post Back ASP.NET Functionality The IsPostBack method in ASP.NET is similar to the BlackBerry.refresh method –IsPostBack.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
Module 1: Getting Started. Introduction to.NET and the.NET Framework Exploring Visual Studio.NET Creating a Windows Application Project Overview Use Visual.
Module 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Module 9: Using XML Web Services in a C# Application.
Introduction to ASP.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting languages.
Configuring and Deploying Web Applications Lesson 7.
ADO.NET Objects Data Adapters Dr. Ron Eaglin. Agenda Builds on Information in Part I Should have working knowledge of creating a database connection Continuation.
Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.
Module 2: Using ADO.NET to Access Data. Overview ADO.NET Architecture Creating an Application That Uses ADO.NET to Access Data Changing Database Records.
Working with ASP.NET Controls What is ASP.NET Using server controls in your pages Allowing users to create their own accounts Creating a login page Letting.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
ASP.net Course From Intermediate to Advance level By Arsalan Ahmed 3 Months Course Cell :
Sergey Sidorov PhD student, computer software chair Computer Science department.
ASP.NET Forms.
Active Server Pages ASP.Net
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
Web Development in Microsoft Visual Studio 2013
ASP.NET
Module 10: Creating a Web Application with Web Forms
ASP.NET Module Subtitle.
Chapter 10 Accessing Database Files
Presentation transcript:

Module 4: Creating a Web Application with Web Forms

Overview Creating a Web Forms Application Accessing Data by Using a Web Form Application Configuring ASP.NET Application Settings

Lesson: Creating a Web Forms Application What Is ASP.NET? What Is a Web Forms Application? How to Create a Web Forms Application What Are the Components of a Web Forms Application? What Is the Life Cycle of a Web Forms Application? How to Add Controls to a Web Forms Application How to Add an Event Handler for the Control

What Is ASP.NET? Evolutionary, more flexible successor to Active Server Pages (ASP) Dynamic Web pages that can access server resources Server-side processing of Web forms Language independent Browser independent XML Web services let you create distributed Web applications

What Is a Web Forms Application? Based on ASP.NET technology to create powerful programmable Web pages Compatible with any browser or mobile device Compatible with any language supported by common language runtime Allow for separation between code and content on a page Support a rich set of controls Provide a set of state management features that preserve the view state of a Web page between requests

How to Create a Web Forms Application Use ASP.NET Web Application Template Controls Files in Solution Explorer Web Form Properties

What Are the Components of a Web Forms Application? Visual component Design view HTML view User interface logic Class MyWebForm Welcome! Name: Password: OK Visual Component MyWebForm.asp.cs MyWebForm.aspx User Interface Logic MyWebForm Both files together make up MyWebForm

What Is the Life Cycle of a Web Forms Application? The life cycle of an ASP.NET Web Form has five basic stages: Page_Init Validation Event Handling Page_Unload Page_Load

How to Add Controls to a Web Forms Application To add a Web server control In Design view, drag Web Server control object from the Toolbox Web Forms tab To add an HTML server control Drag an HTML element onto the page from the HTML tab of the Toolbox Right-click the element and choose Run As Server Control to convert it to a control

How to Add an Event Handler for the Control Many events are triggered by user action in the browser Code to handle raised event is executed on the server When code completes execution, the resulting Web page is sent back to the browser private void Button1_Click(object sender,System.EventArgs e) { //(………) }

Practice: Creating a Web Forms Application Hands-on Practice The Web Forms application in this practice will use several controls, including validation controls In this practice, you will write an event handler that executes when the Form is loaded and in response to particular user- initiated events, such as a button click 10 min

Lesson: Accessing Data by Using a Web Forms Application How to Access Data by Using a Web Forms Application How to Display Data on a Web Forms Application

How to Access Data by Using a Web Forms Application Fundamental principles Using a disconnected model Reading data more often than updating it Minimizing server resource requirements Accessing data using remote processes Data sources for Web Forms pages Database access, ADO.NET XML data Other sources

How to Display Data on a Web Forms Application Create the Web Application project and a Web Form page Create and configure the dataset you will bind the grid to Add the DataGrid control to the form and bind it to the data Add code to fill the dataset, and test 1 2 3 4 private void Page_Load(object sender, System.EventArgs e) { if ( !IsPostBack) { SqlDataAdapter1.Fill(customerDS1); DataGrid1.DataSource = customerDS1; DataGrid1.DataBind(); }

Practice: Displaying Data from a Database on a Web Forms Application Guided Practice In this practice, you will create a form that opens a database table and displays the contents on the Web Forms page 10 min

Lesson: Configuring ASP.NET Application Settings ASP.NET State Management ASP.NET Security How to Configure an ASP.NET Application Setting

Multimedia: ASP.NET Execution Model

ASP.NET State Management HTTP is stateless ASP.NET provides both application and session state management private void Page_Load(object sender,System.EventArgs e) { Session["Demo"]="ABCDEF"; } WebForm1.aspx.cs private void Page_Load(object sender,System.EventArgs e) { textBox1.Text = (string)Session["Demo"]; } WebForm2.aspx.cs

ASP.NET Security Authentication None Windows Forms Passport Authorization Impersonation

How to Configure an ASP.NET Application Setting Using Web.CONFIG <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.web> <compilation defaultLanguage="c#" debug="true"/> <identity impersonate="true" userName="DOMAIN\User" password="123dfget252"/> <authentication mode="Forms"> <forms name="AdvWorks" loginUrl="logon.aspx"/> </authentication> <authorization> <deny users="?"/> </authorization>

Practice: Configuring a Web Application Using Web.Config Matching Practice In this practice, given the Web.Config for an application, you will match answers to a series of questions 10 min

Review Creating a Web Forms Application Accessing Data by Using a Web Form Application Configuring ASP.NET Application Settings

Lab 10.1: Developing an ASP.NET Web Application Exercise 1: Completing the User Authentication Validation Code Exercise 2: Completing the Code for the Master.aspx Form Exercise 3: Testing the Application 1 hour

Course Evaluation