Introduction to ASP.NET What is.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting.

Slides:



Advertisements
Similar presentations
Introduction to .NET Framework
Advertisements

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.
History of.Net Introduced by Microsoft Earlier technology was VC++ and VB VC++ comes with so many library and VB was so easy to use and not flexible to.
Introduction to ASP.NET Some references: Beginning ASP.NET using VB.NET; Wrox; 2002 chpt 2. Kalata, K, Introduction to ASP.NET – 2002, chpt 1. Esposito,
Introduction to.NET What is.NET?  A vision Web sites will be joined by Web services New smart devices will join the PC User interfaces will become more.
Introduction. What is.Net? The hype: “Microsoft.Net is a set of Microsoft software technologies for connecting information, people, systems, and devices.
.Net Overview Giuseppe Attardi Università di Pisa.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
Introduction to ASP.NET What is.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting.
Introduction to ASP.NET What is.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Introduction to ASP.NET
Introduction to VB.Net ITE-370. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new.
HELIA – Bite ATK36F © Tuomo Ketomäki.NET Overview.NET Programming.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
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 ASP.NET
Introduction to.NET Content : – Introduction to.NET Technology – Introduction to Web Based Applications – Introduction to ASP.NET 1 By : Amrendra Sharan.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 2: The ASP.Net Template Dave.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
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.
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
1 8/29/05CS360 Windows Programming Professor Shereen Khoja.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
C# A 1 CSC 298 Introduction to C#. C# A 2 What to expect in this class  Background: knowledge of an object oriented language of the C++, Java, … family.
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.
Introduction to ASP.NET 1www.tech.findforinfo.com.
ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.
The Web Architecture and ASP.NET. Slide 2 Review of the Web (1) It began with HTTP and HTML, which delivers static Web pages to browsers which would render.
CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009.
Introduction to VB.Net. What is.NET? A brand of Microsoft technologies A platform for creating distributed Web applications A combination of new and updated.
1.NET FRAMEWORK CE-105 Spring 2007 Engr. Faisal ur Rehman.
Rajiv and Shipra Introduction to.NET (asp.net,c#,vb)
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
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 3: Using Microsoft.NET- Based Languages. Overview Overview of the.NET-Based Languages Comparison of the.NET-Based Languages.
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
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.
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.
ISYS 512 Business Application Design and Development with.Net David Chao.
INTRODUCTION CHAPTER #1 Visual Basic.NET. VB.Net General features It is an object oriented language  In the past VB had objects but focus was not placed.
ASP.NET – Active Server Pages ASP.NET is a server-side technology for developing web applications based on the.NET Framework.
July 22, 2001Introduction to.NET1 Introduction to.NET Framework Gholamali Semsarzadeh July 2001.
Text Introduction to.NET Framework. CONFIDENTIAL Agenda .NET Training – Purpose  What is.NET?  Why.NET?  Advantages  Architecture  Components: CLR,
Introduction to ASP.NET DESIGNED BY:- ER.ASHISH PANDEY (EXECUTIVE) (NEW HORIZON INDIA LTD)
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.
Intro to ASP.NET CS-422 Dick Steflik. What is.NET As applications in the Enterprise become more and more netcentric and less and less standalone.NET is.
Introduction to .NET Framework
.NET Omid Darroudi.
Florida Gulf Coast University
Introduction to ASP.NET
CE-105 Spring 2007 Engr. Faisal ur Rehman
Module 0: Introduction Chapter 2: Getting Started
Module 1: Getting Started
מבוא ל ASP.NET שיעור 1 : מבוא ל ASP.NET מצגת מס' 1
Moving from ASP to ASP.NET
Web Development Using ASP .NET
Introduction to .NET Framework
Presentation transcript:

Introduction to ASP.NET What is.NET What is ASP.NET and how is different from ASP –ASP: server side technology for creating dynamic web pages using scripting languages eg vb script. –ASP.NET: server side technology for creating dynamic web pages using Fully Fledged programming languages supported by.NET –VB.NET: our chosen language for writing ASP.NET pages

What is.NET? A Microsoft strategy and new technology for delivering software services to the desktop and to the web Components include: – MS Intermediate Language; all code is complied into a more abstract, trimmed version before execution. All.NET languages are compiled to MSIL – the common language of.NET – The CLR- common language runtime; responsible for executing MSIL code; interfaces to Windows and IIS – A rich set of libraries (Framework Class Libraries) available to all.NET languages – The.NET languages such as C#, VB.NET etc that conform to CLR – ASP.NET is how the Framework is exposed to the web, using IIS to manage simple pages of code so that they can be complied into full.NET programs. These generate HTML for the browser. Built on open protocols (XML, SOAP) Future for development of MS & non-MS based systems. Also heading towards the “Internet Operating System”

Common Language Runtime Type System Compilers use the runtime type system to produce type compatible components Components Compilers Common Type System C#VBC++ Runtime Environment

Robust And Secure Native code compilation MSIL No interpreter Install-time or run-time IL to native compilation Code correctness and type-safety IL can be verified to guarantee type-safety No unsafe casts, no uninitialized variables, no out-of-bounds array indexing Evidence-based security Policy grants permissions based on evidence (signatures, origin)

.NET Execution Model VBVC...Script IL Native Code Common Language Runtime Standard JIT Compiler

Common Language Runtime Lightweight Just-in-time compiler: –MSIL to Native machine language –Can be ported to numerous platforms –Free/Net BSD UNIX port has been announced –“MONO” Open source movement

Framework Overview Base Class Library Common Language Specification Common Language Runtime Data and XML VBC++C# Visual Studio.NET Web Forms (ASP.NET) JScript… Win Forms

.NET Framework Architecture Common Language Runtime MetadataType SystemExecution System Base Framework IONetSecurityServiceProcess ADO.NETXMLSQLThreading System.Web Web ServicesWeb Forms ASP.NET Application Services System.WinForms ControlsDrawing Windows Application Services

ASP.NET ASP.NET provides a means of exposing the.NET Framework and its functionality to the WWW Contains a number of pre-built types that take input from.NET types and represents them in a form for the web (such as HTML) Class browser: lus/samples/classbrowser/vb/classbrowser.aspx lus/samples/classbrowser/vb/classbrowser.aspx

Web Services Web Services also provide a means to expose.NET functionality on the web but Web Services expose functionality via XML and SOAP (cf: function calls over the web)

How ASP.NET works When.NET is installed, IIS is configured to look for files with the.aspx extension and to use the ASP.NET module (aspnet_isapi.dll) to handle them. ASP.NET parses the.aspx file and arranges it in a predefined class definition and generates an asp.net page object. The page object generates html that is sent back to IIS and then the browser. NOTE: only.aspx files are parsed (if it is pure html don’t save it as an aspx file as it will slow down the server.

ASP.NET samples Page directives: VB.NET code declarations ……….. Message.aspx Inserting ASP.NET code Example Line1: First HTML Line Line2: Second HTML Line Line3: Third HTML Line Note this has no asp code so better to use.html extension

Message2.aspx Sub Page_Load() Response.Write ("First ASP.NET Line ") Response.Write ("Second ASP.NET Line ") Response.Write ("Third ASP.NET Line ") End Sub Inserting ASP.NET code Example Line1: First HTML Line Line2: Second HTML Line Line3: Third HTML Line

Message3.aspx html> Inserting ASP.NET code Example Line1: First HTML Line Line2: Second HTML Line Line3: Third HTML Line Sub Page_Load() Response.Write ("First ASP.NET Line ") Response.Write ("Second ASP.NET Line ") Response.Write ("Third ASP.NET Line ") End Sub

Render or inline code block – interweave1.aspx Interweaving ASP.NET code and HTML Example Line1: First HTML Line ") %> Line2: Second HTML Line ") %> Line3: Third HTML Line ") %> NOT RECOMMENDED.

Interweave2.aspx A Server control script language="VB" runat="server"> Sub Page_Load() Message.Text="The ASP.NET line" End Sub Inserting ASP.NET code Example First HTML Line Second HTML Line

Page class events Page_init Page_load Server_Controls Page_prerender Page_Unload

ASP.NET Vs PHP FeaturePHPASP.NET HTMLYes CSSYes ‘php Templates’YesUserControls ServerControls (buttons,grids etc) NoYes JavascriptYesYes + Validation controls Database ConnYes Cookies & Sessions Yes VIEWSTATENoYes POSTBACKNoYes

Examples quickstart – webforms –Intro4 shows VIEWSTATE –Intro6 shows a click event –Intro7 shows a usercontrol with a calander –Intro8 shows a db connection –Intro9 & 10 show asp.net templates –Intro11shows validation controls –Intro13 shows code behind pages Server directives eg trace and debug –tracetrace

The lab environment. IIS server – interdev.csse.monash.edu.au/cse2030…. Each student has write access to their own directory on interdev (Sstudentnum) URL: ntnum/message.aspx Alternative to.Net is webmatrixwebmatrix Interdev is not accessible outside Monash network.