1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.

Slides:



Advertisements
Similar presentations
17 HTML, Scripting, and Interactivity Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and.
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
DT228/3 Web Development WWW and Client server model.
Languages for Dynamic Web Documents
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
1 Chapter 12 Working With Access 2000 on the Internet.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Tutorial 6 Working with Web Forms
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
Macromedia Dreamweaver 4 Advanced Level Course. Add Rollovers Rollovers or mouseovers are possibly the most popular effects used in designing Web pages.
Creating Web Page Forms
Tutorial 6 Forms Section A - Working with Forms in JavaScript.
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
1 More JavaScript, HTML Forms, CGI Scripts Tom Horton Alfred C. Weaver CS453 Electronic Commerce.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
CST JavaScript Validating Form Data with JavaScript.
Chapter 9 Web Applications Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 Creating Web Forms in HTML Web forms collect information from customers Web forms include different control elements including: –Input boxes –Selection.
_______________________________________________________________________________________________________________ E-Commerce: Fundamentals and Applications1.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 Forms A form is the usual way that information is gotten from a browser to a server –HTML has tags to create a collection of objects that implement this.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
© 2011 Delmar, Cengage Learning Chapter 9 Collecting Data with Forms.
Server-side Scripting Powering the webs favourite services.
© Cheltenham Computer Training 2001 Macromedia Dreamweaver 4 - Slide No 1 Macromedia Dreamweaver 4 Advanced Level Course.
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.
Programming with Microsoft Visual Basic 2012 Chapter 12: Web Applications.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
10 Adding Interactivity to a Web Site Section 10.1 Define scripting Summarize interactivity design guidelines Identify scripting languages Compare common.
Creating Web Applications Using ASP.NET Chapter Microsoft Visual Basic.NET: Reloaded 1.
Chapter 9 Programming with Web Forms Programming In Visual Basic.NET.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
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.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
JavaScript, Fourth Edition Chapter 5 Validating Form Data with JavaScript.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
1 CSC317/318 INTERNET PROGRAMING / DYNAMIC WEB APPLICATION DEVELOPMENT Siti Nurbaya Ismail Faculty of Computer & Mathematical Sciences, Universiti Teknologi.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction to HTML. _______________________________________________________________________________________________________________ 2 Outline Key issues.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Chapter 27 Getting “Web-ified” (Web Applications) Clearly Visual Basic: Programming with Visual Basic nd Edition.
IN THIS LESSON WE WILL REVIEW THE STRUCTURE OF THE INTERNET AND HOW BROWSERS ASSEMBLE WEBSITES BASED ON INSTRUCTIONS THEY RECEIVE FROM SERVERS. Internet.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
Brief Look InTo JavaScript Dr. Thomas Hicks Computer Science Department Trinity University.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Web Forms, HTML, and ASP.NET
Section 17.1 Section 17.2 Add an audio file using HTML
Static and Dynamic Web Pages
Presentation transcript:

1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS

2 Static Web Pages Original HTML documents Remaining the same after created and modified At all times and to all users All three pages of Lab1 are static

3 Static Web Pages Cannot be used for business operations No user input Cannot respond to different user requests

4 Dynamic Web Pages Interactive or Smart HTML pages User input and Server Response Web Applications Similar to Windows programs Lab 2

5 Special HTML Controls To get user input Element INPUT Element BUTTON Element FORM …

6 Control Types Created with INPUT Text Password Checkbox Radio box Submit Reset Hidden Button File Image...

7 HTML Forms Controls to get user input should be inside HTML forms

8 HTML Controls and Forms Example Source Code

9 HTML Standards HTML 4.01 Specification HTML Current Status

10 Scripts for Dynamic Web Pages User input and Server Response Similar to Windows programs Need code to respond to user input –Client Side Scripting –Server Side Scripting –Combination of above two approaches

11 Client Side Scripting HTML files and instruction files sent to client Client Script JavaScript VBScript Java Applets Flash...

12 Issues with Client Side Scripting Different browsers may interpret instructions in different ways Database is normally at server site Users could view source code

13 Server Side Scripting Instruction files are at server site HTML files are generated according to user input Only HTML files are sent to clients

14 Issues with Server Side Scripting Most computing is done at the server Nothing will work when the server is down More internet traffic Powerful and expensive servers

15 Different Technologies for Server Side Scripting CGI (Common Gateway Interface) JSP (Java Server Pages) PHP (Personal Home Pages) ASP (Active Server Pages) ASP.NET...

16 ASP.NET A server-side technology for creating dynamic web pages Client-side scripting is incorporated (e.g., to check input) VB.NET or any other language supported by.NET Working with MS IISMS IIS

17 Internet Information Services (IIS) IIS waits and takes client requests IIS sends static HTML files to the clients IIS passes client requests to ASP.NET when needed ASP.NET generates dynamic web pages IIS sends dynamic web pages to clients

18 Windows Server Xray In domain ION Our Web Sites Individual student accounts Each student has a Web site on Xray

19 Open Your Web Site on Xray Start VS 2012 Open Web Site Remote Site Login using your UWP UserName and Password Do not try New Project or New Web Site!

20 Lab 2 20 points Due 5 pm, Monday, September 15 Sample Program

21 Creating Folder Solution Explore Right Click on Web Site New Folder Lab2

Creating Web Forms Solution Explorer Right clicking folder Add Web Forms 22

23 Page Default.aspx Similar to index.html Static page for Lab2 Similar to pages of Lab1

Adding Content to Default.aspx Similar to Lab1 Copy and Paste, including the CSS file Web Protocols, Technologies and Applications Qi Yang 24

25 External CSS Files in Other Locations CS3870/CS5870 – Lab2 Absolute link Relative link

26 Page OrderingProduct.aspx Dynamic page Adding controls Adding code VB C#...

Creating Page OrderingProduct.aspx Solution Explorer Right clicking folder Add Add New Items –Visual basic –Web Form –File name –Place code in separate file –(Select Master Page) 27

28 ASP.NET Server Controls HTML Server Controls –HTML server controls are HTML tags understood by the server Web Server Controls –Web server controls are special ASP.NET tags understood by the server. –Web server controls do not necessarily map to any existing HTML elements and they may represent more complex elements. All S erver Controls must be within a tag. All S erver Controls must have the runat="server" attribute.

29 Adding and Formatting Controls ToolBox Standard (not HTML) Setting control properties Style –Source View Format Menu –Set Position Absolute Relative CSS file

Event Procedures Same as Windows programs Compute Square Root TextBox2.Text = FormatNumber(Math.Sqrt(Textbox2.Text), 2) 30

31 Formatting Output Style in HTML source Properties Window VB.NET procedures in VB file VB function –Format –FormatCurrency –...

Checking Input Click event of button Compute Server site scripting Client site scripting should be better Should do it on both sites Control Validator 32

Validators ToolBox Validation Tab RequiredFieldValidator RangeValidator CompareValidator –Type –Operator –Value to compare 33

34 Validation Controls Validate input automatically We don’t check input any more Must set button property CausesValidation to True!

35 Lab 2 You will lose five points for each late day! Even the server is having issues! More to discuss Thursday! No Lab Time for Lab2!