Web Server Programming

Slides:



Advertisements
Similar presentations
Web 2.0 Programming 1 © Tongji University, Computer Science and Technology. Web Web Programming Technology 2012.
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?
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Server-Side vs. Client-Side Scripting Languages
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Active X Microsoft’s Answer to Dynamic Content Reference: Using Active X by Brian Farrar QUE
Introduction to Web Interface Technology (CSE2030)
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Tutorial -01. Objective In this session we will discuss about : 1.What is MVC? 2.Why MVC? 3.Advantages of MVC over ASP.NET 4.ASP.NET development models.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
INTRODUCTION TO WEB DATABASE PROGRAMMING
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.
Web 2.0: Concepts and Applications 11 The Web Becomes 2.0.
Web 2.0: Concepts and Applications 11 The Web Becomes 2.0.
Dynamic Web Pages (Flash, JavaScript)
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Mobile App Support Jacob Poirier Geri Hengesbach Andrea Menke Erin Rossell.
Chapter 1: Introduction to Web
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Introduction to Internet Programming (Web Based Application)
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
JavaScript - A Web Script Language Fred Durao
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview How to create a first ASP.NET application.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
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.
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,
The Problem of State. We will look at… Sometimes web development is just plain weird! Internet / World Wide Web Aspects of their operation The role of.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
PART 2 INTRODUCTION TO DYNAMIC WEB CONTENT AND PHP.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Web 2.0: Concepts and Applications 11 The Web Becomes 2.0.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
111 State Management Beginning ASP.NET in C# and VB Chapter 4 Pages
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
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 Programming Language
ASP.NET Forms.
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
WWW and HTTP King Fahd University of Petroleum & Minerals
Haritha Dasari Josue Balandrano Coronel -
PHP / MySQL Introduction
Dynamic Web Pages (Flash, JavaScript)
Introduction to Silverlight
Web Development in Microsoft Visual Studio 2013
Chapter 27 WWW and HTTP.
Objective Understand web-based digital media production methods, software, and hardware. Course Weight : 10%
Introducing the .NET Framework
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Presentation transcript:

Web Server Programming Web Programming Basics

Content HTML and HTML Forms Server-Side Programming Client-Side Programming .NET Framework Common Language Runtime (CLR) Visual Studio 2012 Environment Application: Currency Converter Muzaffer DOĞAN - Anadolu University

Web Pages Static Web Pages: Content doesn’t change when requested by a user Dynamic Web Pages: Content changes depending on the user’s request and preferences Client-Side: Executed in the browser Server-Side: Executed in the server Muzaffer DOĞAN - Anadolu University

HTML Early websites were not web applications They were like brochures HTML only displays the information HTML has two types of contents: Text and Tags HTML actually doesn’t do anything Saved in a fixed file (for example index.html) No interactivity Doesn’t require a web server Muzaffer DOĞAN - Anadolu University

HTML Example <html> <head> <title>Sample Web Page</title> </head> <body> <h1>Sample Web Page Heading</h1> <p>This is a sample web page.</p> </body> </html> Muzaffer DOĞAN - Anadolu University

HTML Example Muzaffer DOĞAN - Anadolu University

An HTML Request Internet Request HTML Document Display HTML Document Muzaffer DOĞAN - Anadolu University

Browsers Internet Explorer, Firefox, Opera, Google Chrome, Safari, Netscape, Camino, etc. Browsers display HTML pages Different browsers display the same page differently Incorrect HTML may be displayed weirdly or not at all in some browsers There are different versions of browsers for mobile devices too Muzaffer DOĞAN - Anadolu University

HTML Forms Introduced by HTML 2.0 Graphical widgets or controls (text boxes, buttons, drop-down lists, etc.) are added These controls should be put between <form> and </form> tags Standard input pages can be designed Input data are sent to web server Web server processes the data Muzaffer DOĞAN - Anadolu University

HTML Forms Example <html> <head> <title>Sample Web Page</title> </head> <body> <form> <input type="checkbox" /> This is choice #1<br /> <input type="checkbox" /> This is choice #2<br /><br /> <input type="submit" value="Submit" /> </form> </body> </html> Muzaffer DOĞAN - Anadolu University

HTML Forms Example Muzaffer DOĞAN - Anadolu University

Methods of Sending Information The Form object may be used to send the data to another page using “action” attribute: <form action="Another_Page.php"> <input type="checkbox" /> This is choice #1<br /> <input type="checkbox" /> This is choice #2<br /><br /> <input type="submit" value="Submit" /> </form> Form object can send values in two separate methods: POST and GET: <form method="GET">...</form> <form method="POST">...</form> Muzaffer DOĞAN - Anadolu University

Methods of Sending Information POST Default method User data is combined in a special form and sent to the server GET User data is added to the end of the URL address Data is sent as an encoded stream Example: http://ceng.anadolu.edu.tr/Homeworks.aspx?code=bim308&hwnum=2 What about refreshing pages using POST and GET? Muzaffer DOĞAN - Anadolu University

Client-Side Programming Aims to enhance the appearance of web sites JavaScript, ActiveX, Java, Flash, Silverlight, etc. Doesn’t involve any server processing The complete application is downloaded to the client browser and browser executes it locally Provides immediate feedback to the user Reduces the load on a server Reduces network traffic Client-side technologies are not supported equally by all browsers and operating systems Muzaffer DOĞAN - Anadolu University

A Client-Side Web Application Muzaffer DOĞAN - Anadolu University

A Client-Side Web Application Internet Request HTML Document (with embedded applet) Run Client-side application Muzaffer DOĞAN - Anadolu University

Server-Side Programming Executed on the server side Early web development technologies used CGI In CGI, web server launch a completely separate instance of the application for each web request If the website is popular, the web server may be down easily If higher-level features are needed, the pages of codes should be written from scratch This way is tedious and error-prone To counter these problems, high-level development platforms are created, such as PHP, JSP, ASP, and ASP.NET Muzaffer DOĞAN - Anadolu University

A Server-Side Web Application Muzaffer DOĞAN - Anadolu University

A Server-Side Web Application Internet Run Server-Side Application and Process Input Data Request HTML Document Display Web Page Muzaffer DOĞAN - Anadolu University

High-Level Dev. Platforms Allow developers to program dynamic web pages without worrying about the low-level implementation details High-level development platforms are widely used in highly-traficked e-commerce sites and mission-critical business applications Muzaffer DOĞAN - Anadolu University

Classic ASP Example <html> <body> <% response.write("Hello World!") %> <% response.write("<p style='color:#0000ff'>Hello World!</p>") %> </body> </html> Muzaffer DOĞAN - Anadolu University

PHP Example <html> <body> <?php echo "Hello World!"; ?> <?php echo "<p style='color:#0000ff'>Hello World!</p>"; ?> </body> </html> Muzaffer DOĞAN - Anadolu University

Classic ASP vs. ASP.NET ASP is a script-based programming language that requires a thorough understanding of HTML and a good deal of painful coding ASP.NET is an object-oriented programming model that lets developers to develop websites as easily as Windows applications Muzaffer DOĞAN - Anadolu University

ASP.NET A server-side technology All ASP.NET codes are executed on the web server When the code is finished executing, the user receives an ordinary HTML page, which can be viewed in any browser Muzaffer DOĞAN - Anadolu University

Advantages of Web Applications Web applications don’t require setup CDs, downloads, and other tedious (and error-prone) deployment steps A web application can be used on any computer that has Internet access Users don’t have to download and install the latest version of the application Design issues are more simple according to Windows applications Designing multi-user applications are simple Muzaffer DOĞAN - Anadolu University

Disadvantages of Web Applications When developers use client-side technologies, they encounter cross-browser compatibility problems Developers should test their websites with different browsers and operating systems Only Internet-based applications can be developed Muzaffer DOĞAN - Anadolu University

Why Use Server-Side Programming Instead of Client-Side? Isolation: Client-side code can’t access server-side resources Security: End users can view client-side code Thin clients: Mobile phones, PDAs, etc. don’t support all features of a traditional browser Muzaffer DOĞAN - Anadolu University

Best Solution? Combining server-side and client-side programming is the best solution ASP.NET controls can detect capabilities of the client browser If browser supports JavaScript, these controls return a web page that incorporates JavaScript Ajax technology can be used with ASP.NET effectively However, ASP.NET codes are always executed on the server Muzaffer DOĞAN - Anadolu University

.:. .:. Application .:. .:. Creating a web project File system or local IIS? What is web solution and web project? Where is the solution (.sln) file? Solution Explorer Adding Web Forms Design View, Source View, Split View Adding Web Controls in Design and Source views Grid Layout vs. Flow Layout Muzaffer DOĞAN - Anadolu University

.:. .:. Application .:. .:. Properties Window Page Directive Attributes Adding Event Handlers (by hand, by designer, by Properties Window) Outlining Collapsing methods, regions Muzaffer DOĞAN - Anadolu University

.:. .:. Application .:. .:. Intellisense Importing namespaces Member list Overloaded method and parameter information Error Underlining Importing namespaces Debugging Breakpoints, F9, F5, F10, F11, Ctrl-F5, Shift-F5, Shift-F11, Run to Cursor Conditional Breakpoints, Variable Watches Currency Converter Example Muzaffer DOĞAN - Anadolu University

References Beginning ASP.NET 3.5 in C# 2008: From Novice to Professional http://aspnet.4guysfromrolla.com/articles/112107-1.aspx http://cs.haifa.ac.il/courses/webp/ Muzaffer DOĞAN - Anadolu University