Presentation is loading. Please wait.

Presentation is loading. Please wait.

ASP.NET Imran Rashid CTO at ManiWeber Technologies.

Similar presentations


Presentation on theme: "ASP.NET Imran Rashid CTO at ManiWeber Technologies."— Presentation transcript:

1 ASP.NET Imran Rashid CTO at ManiWeber Technologies

2 Outline Introduction ASP.NET - First Example Master Pages in ASP.NET
Theme Integration ASP Tags Collaboration b/w .aspx and aspx.cs

3 Introduction

4 Introduction ASP.NET is an open source web framework for building modern web apps and services with .NET [Microsoft] It creates websites based on HTML5, CSS, and JavaScript that are simple, fast, and can scale to millions of users ASP stands for Active Server Pages [w3schools] ASP supports many different development models: Classic ASP ASP.NET Web Forms ASP.NET MVC ASP.NET Web Pages ASP.NET API ASP.NET Core

5 Introduction The ASP Technology Classic ASP - Active Server Pages
ASP and ASP.NET are server side technologies Both technologies enable computer code to be executed by an Internet server When a browser requests an ASP or ASP.NET file, the ASP engine reads the file, executes any code in the file, and returns the result to the browser Classic ASP - Active Server Pages ASP (aka Classic ASP) was introduced in 1998 as Microsoft's first server side scripting language Classic ASP pages have the file extension .asp and are normally written in VBScript

6 Introduction ASP.NET ASP.NET Web Pages
ASP.NET was released in 2002 as a successor to Classic ASP ASP.NET pages have the extension .aspx and are normally written in C# (C sharp) ASP.NET 4.6 is the latest official version of ASP.NET ASP.NET 5 was expected to be an important redesign of ASP.NET However, the development of ASP.NET 5 was stopped in favor of ASP.NET Core ASP.NET Web Pages ASP.NET Web Pages is an SPA application model (Single Page Application)

7 Introduction ASP.NET MVC ASP.NET Web API
The SPA model is quite similar to PHP and Classic ASP ASP.NET Web Pages is being merged into the new ASP.NET Core ASP.NET MVC ASP.NET MVC is an MVC application model (Model-View-Controller) ASP.NET MVC is being merged into the new ASP.NET Core ASP.NET Web API ASP.NET API is an API application model (Application Programming Interface) ASP.NET API is being merged into the new ASP.NET Core

8 Introduction ASP.NET Web Forms ASP.NET Core
ASP.NET Web Forms is an event driven application model ASP.NET Web Forms is not a part of the new ASP.NET Core ASP.NET Core ASP.NET Core was released in 2016 ASP.NET Core merges ASP.NET MVC, ASP.NET Web API, and ASP.NET Web Pages into one application framework

9 ASP.NET - First Example

10 ASP.NET - First Example An ASP.NET page is made up of a number of server controls along with HTML controls, text, and images Sensitive data from the page and the states of different controls on the page are stored in hidden fields that form the context of that page request ASP.NET runtime controls the association between a page instance and its state An ASP.NET page is an object of the Page or inherited All the controls on the pages are also objects of the related control class When a page is run, an instance of the object page is created along with all its content controls

11 ASP.NET - First Example An ASP.NET page is also a server side file saved with the .aspx extension It is modular in nature and can be divided into the following core sections: Page Directives The page directives set up environment for the page to run directive defines page-specific attributes used by ASP.NET page parser and compiler Page directives specify how the page should be processed, and which assumptions need to be taken about the page It allows importing namespaces, loading assemblies, and registering new controls with custom tag names and namespace prefixes

12 ASP.NET - First Example Code Section
The code section provides the handlers for the page and control events along with other functions required We mentioned that, ASP.NET follows an object model Now, these objects raise events when some events take place on the user interface, like a user clicks a button or moves the cursor The kind of response these events need to reciprocate is coded in the event handler functions The event handlers are nothing but functions bound to the controls The code section or the code behind file provides all these event handler routines, and other functions used by the developer

13 ASP.NET - First Example Page Layout
The page layout provides the interface of the page & contains the server controls, text, JavaScript, and HTML tags

14 Master Pages in ASP.NET

15 Master Pages in ASP.NET ASP.NET master pages allow you to create a consistent layout for the pages in your application A single master page defines the look and feel and standard behavior that you want for all of the pages (or a group of pages) in your application You can then create individual content pages that contain the content you want to display When users request the content pages, they merge with the master page to produce output that combines the layout of the master page with the content from the content page

16 Header Container Contents Sidebar Footer Master Pages in ASP.NET
Master vs. Content Header Default.aspx Container Contents Default.aspx Sidebar Login.aspx Login.aspx Footer

17 Theme Integration

18 ASP Tags

19 Collaboration b/w .aspx and aspx.cs

20 Any ?


Download ppt "ASP.NET Imran Rashid CTO at ManiWeber Technologies."

Similar presentations


Ads by Google