13
ASP .NET INTRODUCTION

ASP .Net Introduction

  • Upload
    shivuhc

  • View
    252

  • Download
    0

Embed Size (px)

DESCRIPTION

C

Citation preview

  • ASP .NET INTRODUCTION

  • Static PagesIn static Web Pages, the contents are not changed until the webmaster creates and updates a new version of contents.The features of static pages are as followsContain a collection of related documentsPerform betterRequire no script programmingShare Information through the hyperlinks

    StaticWebPageChanges

  • Dynamic PagesIn Dynamic Web Pages, the contents are changed by a program or script as per the request of the userThe features of dynamic pages are as followsChange either before or while a user is looking at the pageRefer to customization or personalizationContain information, which is generated based on the data retrieved from a databaseRequire server-side programmingThe Response Time of the dynamic pages is high when compared to static pagesDynamicWebPageProgram (or)Script

  • Dynamic Pages (contd.)The two types of technique used to develop dynamic pages are as followsCommon Gateway Interface (CGI)Internet Server Application Programming Interface (ISAPI)Common Gateway Interface ( CGI)It is a standard external gateway programs toInterface with information servers such as HTTP or Web Servers.An Overview of CGI is as followsThe CGI programs are executableThey permit the programs to run on a Web ServerThey reside in a special foldercalled cgi-binCGI Scripts are used instead of programming ClientServer

    Docu.htmlCGIProgramHTTP ServerInternet

  • Dynamic Pages (contd.)Internet Server Application Programming Interface (ISAPI)An overview of ISAPI is as followsISAPI is quite similar to CGIISAPI extensions are implementedas dynamic-link libraries (.dll)ISAPI extension are multithreadedGets loaded in memory once andStays in the same process as webserver.ISAPIWWWServiceWebBrowser

    InternetISAPIISAPIFilter CGIISAPIFilterFTPService

  • Basic of ASPASP is a program that runs inside internet information server (IIS)An overview of ASP is as followsASP supports scripting languages, such as VBScript and JscriptASP code cant be compiledConfiguration of the ASP applications require access to the machine, which host the websiteAn ASP file is just the same as an HTML fileAn ASP file can contain text, HTML, XML and scriptsAn ASP file has the extension .asp IIS

    ASPPageVBScriptJScript

  • The advantages of ASP are as followsEdit, Change, or add the content of a web pageRespond to user queries or the data submitted from HTML formsAccess any data or databases and returns the results to a browserCustomize a web page to make it more useful for individual usersProvide security so that ASP code cant be viewed from the browserProvide an option of viewing the files in any browserMinimize the network trafficSimplicity and speedExample

  • Introduction to ASP.NETBrowserIISASP .NET

    WebFormsWebControls.NET LanguageVB, C# and C++

  • Basics of ASP .NETAn overview of ASP .NET is as followsThe successful language used in Web DevelopmentIt is the next generation of ASP, but it is not an upgraded version of ASPFeatures of ASP .NETEasy programming modelASP .NET server controls enable an HTML like style of declarative programmingFlexible and multiple-language optionsASP .NET uses the new ADO .NET. It supports entire VB, C#, C++ and JScirpt but not VBScriptIncreased performance and scalabilityASP .NET is faster than classic ASP while preserving the just hit save update model of ASP. However, no explicit compile step is required.ASP .NET output caching can improve the performance and scalability of an application by eliminating the need to query the database on every request

  • Advantages of ASP .NETThe advantages of ASP .NET are as followsClean separation between the application logic and presentation layerAutomatic rendering of HTMLEnhanced session state managementSimple and more intuitive event-based programming modelBetter performance by application logic that can be written in any Microsoft .NET languageSimplifies the development process of Web FormsUser authentication, with account and rolesHigher scalabilityXML based componentsIncreased Performance Compiled CodeEasier Configuration and deployment

  • Web FormWeb Forms contain blocks of code that are processed on the serverAn overview of Web Form is as followsWhen a Web Form is requested for the first time, the entire page is compiledWeb Forms contain page directives, which are global settings for the page. The common page directives enable the user to turn off the session state and ViewState managementWeb Forms contain server-sides and user controlsWeb Forms also contain HTML and Client-side script

    MyWebform.aspxMyWebform.aspx.csMyWebform

  • A web Forms page consists of An .aspx file name extensionA @Page directive, which defines page specific attributes used by the ASP .NET page parser and compilerExample%@Page attribute=value [attribute=value.....]%A framework, which is denoted by the runat=server attributeExampleClient-Side and server-side codesHTML and server controls

  • THANK YOU