Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,

Slides:



Advertisements
Similar presentations
Overview Environment for Internet database connectivity
Advertisements

Introduction to .NET Framework
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Web Server Programming
DT228/3 Web Development WWW and Client server model.
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.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Web-Based Applications
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 1.
DT211/3 Internet Development Application Internet Development Application.
Introduction to Web Interface Technology (CSE2030)
J2EE vs..NET Nigam Patel. Topics Background –Web Services, J2EE and.NET Similarities Differences Conclusion –Pros and Con (J2EE and.NET)
IT 533 Lecture Notes Gül ş en Demiröz Introduction to Web Programming using ASP.NET.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Rajeswari Indupuri Introduction to.NET Framework.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Introduction to.NET Content : – Introduction to.NET Technology – Introduction to Web Based Applications – Introduction to ASP.NET 1 By : Amrendra Sharan.
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.
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a library for.
Introduction to .NET Rui Ye.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
IT 533 Lecture Notes Introduction to Web Programming using ASP.NET.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Introduction to ASP.NET 1www.tech.findforinfo.com.
ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
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.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
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,
Module 1: Overview of the Microsoft .NET Framework
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Web Technologies Lecture 8 Server side web. Client Side vs. Server Side Web Client-side code executes on the end-user's computer, usually within a web.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Introduction and Principles Web Server Scripting.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
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.
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 Part I Dr. Awad Khalil Computer Science Department AUC.
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 Development Using ASP .NET
ASP.NET Module Subtitle.
Presentation transcript:

Introducing ASP.NET 2.0

Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE, FireFox)

Internet Technologies WWW Architecture Client-side:  HTML / XHTML (Extensible HyperText Markup Language)  JavaScript / VBScript (client-side scripting)  Applets / ActiveX controls Server-side:  PHP  JSP (Java Server Pages)  ASP (Active Server Pages)  ASP.NET (next generation of ASP)

Server-Side Code What is server-side code?  Software that runs on the server, not the client  Receives input from  URL parameters  HTML form data  Can access server-side databases, servers, files, mainframes, etc.  Dynamically builds a custom HTML response for a client HTTP request (form data, HTTP header data) HTTP response HTML, XML ASP page (static HTML, server-side logic)

Static vs Dynamic Web Pages Most Web pages that you view are not static HTML pages Instead they are dynamic generated content output from programs that run on servers These programs can interact with server resources like databases and XML Web services

ASP.NET Overview ASP.NET is a revolutionary programming framework that enables the rapid development of powerful web applications and services It’s a part of the emerging Microsoft.NET Platform It provides the easiest and most scalable way to build, deploy and run distributed web applications that can target any browser or device

Why ASP.NET? Make it easier to build web apps Make it easier to deploy web apps Make it easier to operate web apps Provide greater performance, reliability, and scalability

ASP.NET Capabilities 1. It’s really, really fast! 2. Deploy and upgrade running apps with XCOPY 3. Great tools support 4. Automatically detects and recovers from errors 5. Built-in output caching 6. Supports wide range of mobile devices 7. Uses compiled languages 8. Makes building web services easy 9. Much simpler page development model

The.NET Framework.NET Framework is a collection of technologies for the development and deployment of.NET software systems Common Language Runtime (CLR)  Unifies programming models  Provides robust and secure execution environment  Supports multiple programming languages  Provides core services  Memory management (Garbage Collection)  Thread management  Remoting  Manage Code Execution  “Like” Java Runtime Environment (JRE)  Code is NOT interpreted by CLR, but managed Common Language Specification  Set of features guaranteed to be in all languages

The.NET Framework Aim of.NET : seamless interoperability  A component in any.NET language can:  Inherit from any other.NET language class  Call the methods of any other.NET language class Benefits of.Net  Rich UI Toolkit, even for the web (ASP.Net)  Language independence (VB.Net, C#, J#, C++, COBOL, and others)  Standard based (XML, SOAP, HTTP)  Interoperability with COM .Net Framework Library  Rich set of classes

The.NET Framework Common Language Specification Common Language Runtime VBC++C# ASP.NET: Web Services and Web Forms JScript… Windows Forms.NET Framework Base Classes ADO.NET: Data and XML Visual Studio.NET

Example of ASP.NET void btnSubmit_OnClick(Object sender, EventArgs e) { lbl1.Text = “Hello World!"; } start.aspx ASP.NET Directive Specify used language Server side script ASP.NET web form Note one page can have only one web form ASP.NET web control Event Handler

Example of ASP.NET  Result Click Hello World! Client Web Browser

Example of ASP.NET  Result Click Hello World! Client Web Browser void btnSubmit_OnClick(Object sender, EventArgs e) { lbl1.Text = “Hello World!"; } ASP.NET server control Before user clicks the button, this control is invisible ASP.NET server control All have Id and Text attributes Create browser-specific HTML Event handler function This function specifies what to do when some event occurs. In these case, it changes “lbl1” control’s text

 Round trip start.aspx Client Browser lbl1 btn1 Post Data lbl1=“” submit=btn1 Event occurs Send data Event handler btnSubmit_OnClick Server Event occurs Example of ASP.NET

ASP.NET Web Forms An ASP.NET web application:  Consists of any number of web pages, controls, programming classes, web services, and other files  Residing within a single web server application directory The principle component of an ASP.NET web application are its web pages These are text files with an.aspx extension and are called web forms Consists of two parts:  The declaratively-defined (i.e., by markup/ tags) visual elements  The programming logic

Web Form Programming Logic A web form’s programming logic can exist in either:  The same file as the visual elements  i.e., the.aspx file  This code is contained within a code-declaration block  In a separate class file  The file is usually called a code-behind file  By conversation, its filename is same as.aspx file but with a language extension HelloWorld.aspx <- web form HelloWorld.aspx.cs <-code-behind file

Why Use Code-Behind? The real advantage of separating the code into its own file is that it may lead to more maintainable web forms  One of the main benefits of ASP.NET is that a page’s programming logic can be conceptually separated from the presentation  By using a code-behind file a page’s programming logic can also be physically separated from the presentation/markup

Why Use Code-Behind? By placing the programming code into its own file, it is also potentially easier to make use of a division of labor in the creation of the site Use whichever model you want  However, all the examples in text use code-behind

Web Application Structure An ASP.NET web application can simply consist of a folder containing web forms and other files You can add any number of additional nested subfolders within this root folder ASP.NET has a number of reserved application folder names, e.g.  App_Code  App_Data  App_Theme