ASP.NET application. Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind.

Slides:



Advertisements
Similar presentations
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
Advertisements

Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
11 ASP.NET Slides based off:. 22 B ACKGROUND - W EB A RCHITECTURE Web Server PC/Mac/Unix/... + Browser Client Server Request:
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
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.
1 Classic ASP vs. ASP.NET Technical Information and Market Adoption Lance Welker University of San Diego Dr. Rebman MSIT 526 December 20, 2005.
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
IT533 Lectures Configuring, Deploying, Tracing and Error Handling.
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.
© 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.
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.
DR.JOHN ABRAHAM PROFESSOR UTPA ASP.NET. ACTIVE SERVER PAGES (ASP) Web application development environment Web applications use web browser to display.
ASP.NET Dr. Ralph Westfall May, Web Development Problem HTML designed to display static pages only interactive when user clicks links  can’t provide.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
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 + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
.Net is a collection of libraries, templates and services designed to make programming applications of all kinds, easier, more flexible (multi platform),
ASP.NET The.NET Framework. The.NET Framework is Microsoft’s distributed run-time environment for creating, deploying, and using applications over the.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
Microsoft ® ASP.NET Presented by Joseph J. Sarna Jr. JJS Systems, LLC.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Introduction to ASP.NET 1www.tech.findforinfo.com.
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.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
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.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
Cross-Language Demo Demonstrates mixing C# and VB.NET code C# Class CSDemoClass.cs VB.NET Class VBDemoClass.vb “Main” class (C#) Demo.cs.
CIS 451: ASP.NET Concepts Dr. Ralph D. Westfall January, 2009.
COMP3241 E-Business Technologies Richard Henson University of Worcester October 2012.
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 2: Using Microsoft Visual Studio.NET. Overview Overview of Visual Studio.NET Creating an ASP.NET Web Application Project.
VITALE, CATURANO & COMPANY LTD Microsoft SharePoint Web Part Development Overview VITALE, CATURANO & COMPANY LTD SharePoint Developer Series – Web Part.
PAGE DIRECTIVES. Page Directives  They are instructions, inserted at the top of an ASP.NET page, to control the behavior of ASP.NET pages.  So it is.
Christopher M. Pascucci.NET Programming CodeBehind.
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,
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.
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.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
Configuring and Deploying Web Applications Lesson 7.
11 Getting Started with ASP.NET Beginning ASP.NET in C# and VB Chapters 1 and 2.
ASP.NET – Active Server Pages ASP.NET is a server-side technology for developing web applications based on the.NET Framework.
Svetlin Nakov Telerik Corporation
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
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.
Alexey Polovinkin Post graduate student, CMC department.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
ASP – Web Programming Class  Ravi Anand. ASP – Active Server Pages What is ASP? - Microsoft Technology - Can Run using IIS/PWS/Others - Helps us create.
© 2004 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Programming the Web Using ASP.Net Chapter 6: The User Interface (UI) Dave.
ASP.NET Forms.
Session Variables and Post Back
Florida Gulf Coast University
Active Server Pages ASP.Net
Web Development in Microsoft Visual Studio 2013
Application Infrastructure
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Presentation transcript:

ASP.NET application

Roadmap ASP.NET file types Bin directory Application updates Simple application from start to finish using a virtual directory Behind the scenes Code Behind Web Form Inheritance Importing namespaces 2www.tech.findforinfo.com

ASP.NET file types File Name Description.aspx ASP.NET web pages User Interface and underlying code.ascx ASP.NET user controls,used to create custom controls Inherited to a web page Web.config XML-based configuration files,which hold settings for application.cs,.vb Code behind files,allows to create separate code Global.asax File is used to declare global variables and react to global events.asmx Web services 3www.tech.findforinfo.com

The bin directory Every application has a sub directory called as bin It holds the.NET assemblies used by your application To say in simple it holds the compiled version of the code Eg database component 4www.tech.findforinfo.com

Application updates ASP.NET application easily and painlessly modified without the need of restarting the server Page updates If the code is modified in a page,ASP.NET automatically recompiles an updated version with the next client request and uses caching to improve performance 5www.tech.findforinfo.com

Component updates The assemblies in the bin directory can be easily replaced ASP.NET continuously monitors the bin directory and creates a new application domain and uses it for the new requests 6www.tech.findforinfo.com

Configuration changes The configuration of a web application is defined in the web.config file The web.config file holds the information in the XML format Once again the new changes are managed by the new application domain Easy and editable medium and the changes are rolled back easily 7www.tech.findforinfo.com

Simple application from start to finish Create Virtual directory C:\ASP.NET\TestWeb Go to Control panel->Administrative tools -> IIS- >Default Web Site Right click and select New virtual directory 8www.tech.findforinfo.com

Continue the wizard 9www.tech.findforinfo.com

Give the alias name as MyFirstWebApp 10www.tech.findforinfo.com

Create a simple code Public Sub Page_Load() lbltest.Text="Helo" End Sub 11www.tech.findforinfo.com

Line by Line with the code It consists of two blocks Script –holds the code Form – holds the asp server controls When creating server controls always it is necessary to use runat=“server” attribute,it specifies the control is based on the server 12www.tech.findforinfo.com

Behind the scenes ASP.NET Web request IIS Handle the request Is the file reg to ASP.NET NO Start the application Yes Is the application started Compile the page Instantiate the page events Render to HTML one control at a time Web response Yes Is the page compiled 13www.tech.findforinfo.com

How to run Open the explorer Type directory name/formname.aspxhttp://computername/Virtual 14www.tech.findforinfo.com

Code Behind Create separate code file(.vb file for VB.NET or.cs file for C#.NET) The.aspx file contains the UI and series of HTML code with ASP.NET tags The.vb or.cs file contains only code(Logic) Page Language=“VB” Inherits =“MyPageClass” Src=“MyPageClass.cs” Identifies the classIdentifies source file 15www.tech.findforinfo.com

The MyPageClass.cs file It consists of a class file Public Class MyPageClass Inherits System.Web.UI.Page ‘Code goes here’ End Class 16www.tech.findforinfo.com

Inheritance explained 17www.tech.findforinfo.com

Inheritance explained 18www.tech.findforinfo.com

Web form inheritance Custom.aspx file Custom page Class (.cs) Page object Generic page class System.Web.UI.namespace 19www.tech.findforinfo.com

Three levels of inheritance Step 1 Generic Page class Library available in the.NET library with the basic functionality Step2 The code behind file(.vb or.cs file) inherits from the Page class to accquire the basic set of ASP.NET web page 20www.tech.findforinfo.com

Three levels of inheritance Step 3 Finally the.aspx file inherits the code from the code behind file to combine the user interface with the code 21www.tech.findforinfo.com

Importing namespaces The namespaces can be added into the code using “imports” keyword in vb” “using” keyword in C# Alternative way is to add in directives Imports System.Data.Oledb 22www.tech.findforinfo.com

Accessing Code Behind Better Organization Often ASP.NET is combined with html and asp code The code behind provides a neat encapsulation of the code in a class Separation of User Interface It designed by any third party tools like Microsoft Frontpage or Macromedia Dreamweaver The ability to use advanced code editors Notepad Visual Studio.Net editor (Intellisense provides automatic statement completion) 23www.tech.findforinfo.com

Three ways to Code Web Form Development Type You CreateYou Deploy (to the server) Traditional inline code.aspx.aspx file Code Behind.aspx files with.vb code. aspx and.vb files Compiled Code Behind.aspx files with.vb code.aspx files and the compiled.dll files 24www.tech.findforinfo.com