CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.

Slides:



Advertisements
Similar presentations
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Advertisements

11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Web-Based Applications
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
11 ASP.NET Controls Beginning ASP.NET 4.0 in C# 2010 Chapter 6.
ASP.Net, Web Forms and Web Controls 1 Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
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.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
JavaScript & jQuery the missing manual Chapter 11
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.
CSCI 6962: Server-side Design and Programming Course Introduction and Overview.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
1 Web-Enabled Decision Support Systems Introduction to ASP.NET Prof. Name Position (123) University Name.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
XHTML Introductory1 Forms Chapter 7. XHTML Introductory2 Objectives In this chapter, you will: Study elements Learn about input fields Use the element.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Chapter 9 Programming with Web Forms Programming In Visual Basic.NET.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
1 1 Lab1 Ismail M. Romi – IT Dept, PPU, Visual Basic 2005 Programming Tour.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
Chapter 4 – Working with ASP.NET Controls Dr. Stephanos Mavromoustakos.
CSCI 6962: Server-side Design and Programming Introduction to Java Server Faces.
CSCI 6962: Server-side Design and Programming Web Services.
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.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Programming with Visual Web Developer Chapter 9.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Microsoft Visual Basic 2005 CHAPTER 7 Creating Web Applications.
CSCI 6962: Server-side Design and Programming AJAX Tools in JSF and ASP.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Introduction to ASP.NET1. 2 Web applications in general Web applications are divided into two parts –The server part –The client part The server part.
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.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
CSCI 6962: Server-side Design and Programming Master Pages.
IMS 4480: Introduction to Web Services 1 Dr. Lawrence West, MIS Dept., University of Central Florida Introduction to Web Services—Topics.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Module 4: Creating a Web Application with Web Forms
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
11 ASP.NET Server Controls Beginning ASP.NET in C# and VB Chapter 4.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
1111 Creating HTML Programatically Objectives You will be able to Invoke C# code on the server from an ASP.NET page. Write C# code to create HTML.
Creating a Web Site Creating a new Web site Defining and using folders Creating and editing Web pages Viewing pages in a Web browser.
Beginning ASP.NET in C# and VB Chapter 9
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.
Microsoft Expression Web - Illustrated Unit A: Getting Started With Microsoft Expression Web.
CSCI 6962: Server-side Desig n and Programming ASP Server Controls.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
ASP.NET Forms.
ASP.NET Web Controls.
Web Forms, HTML, and ASP.NET
Visual programming Chapter 1: Introduction
Web Development in Microsoft Visual Studio 2013
ASP.Net Demo ISYS 350.
Social Media And Global Computing Introduction to Visual Studio
Understanding the Visual IDE
ASP.NET.
Programming with Microsoft Visual Basic 2008 Fourth Edition
Presentation transcript:

CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages

2 Active Server Pages Active Server Page approach: Create “form” which is translated to html

3 Active Server Pages Server-side code manipulates “form elements” – Subroutine called when page submitted – Data read from elements (actually request string) – Used to set value of other elements

4 Active Server Pages Resulting form translated to response page

ASP/IIS Architecture IIS routes request to ASP.NET if.aspx file requested ASP.NET loads requested.aspx file, runs code, and converts resulting form to html file

Creating a New Web Site Choose File  New Web Site Choose “ASP.NET Empty Web Site” – Can select either Visual Basic or Visual C# – Can set name/ location of site at bottom

Adding a Web Form Solution Explorer contains files related to application – Initially Web.config (like web.xml in JSF) Right-click site name in Solution Explorer  Add  New Item

Ways to View Page Source: Html source code (can insert html tages) Design: WYSIWYG mode showing corresponding page Split: Both simultaneously

Viewing the Web Page Simplest method: Cntrl-F5 Runs page in default browser

Toolbox Toolbox on LHS lets you drag components onto page – Similar to VB, VC# – Components not created programmatically

Example: Adding a Button Click on the Button option and drag it onto the screen Drag to desired location – Design or Split mode – Within defined area of page

Properties Window Visual components commonly edited with Properties box on RHS – Example: Text property controls text displayed on button

Setting Component ID Visual components referred to using ID property – Most important property to set (like name in JSP) – Allows code to get/set property values

ASP and Dynamic Pages Code used to manipulate ASP site – Code activated by event (such as submit button being pressed) – Code can read properties of visual controls – Code can modify properties of other visual controls to change page

“Hello World” Example Textbox for name – ID = nameBox Label for greeting – ID = greetLabel, Text = “” Button to activate code – ID = helloButton (not strictly necessary, but good practice)

Accessing Code Window Double-click on window shows code associated with events (“code behind”) –.cs file associated with all events – Page_Load = code executed when page loaded – helloButton_Click executed when button pressed

Adding Code Code added to helloButton_Click executed when button pressed Get the Text property of the nameBox Append that name to the rest of the string using “+” Write that string into the Text property of the greetLabel

Viewing the Result Run with Cntrl-F5, enter a name and press the button The code is executed: – String read from Text property of nameBox – String written to Text property of greetLabel

Default Post Back Mode By default, same page requested from server All component values automatically echoed in page sent back as response – Similar to JSF

How Does This Work? At client side, these components displayed as corresponding html Event causes page to be submitted to server – Form data included in request

How Does This Work? By default, same page requested (“postback”) Implemented as Visual Basic/C# form at server side Form data from request written into the properties of the form elements – Parameter value for text element  Text property of TextBox