SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Microsoft ASP. Net Overview
What is ASP .Net ?


   ASP.NET       provides    a   programming     model and
    infrastructure that offers the needed services for
    programmers to develop Web-based applications.
   ASP.NET is a part of the .NET Framework, the
    programmers can make use of the managed Common
    Language Runtime (CLR) environment, type safety, and
    inheritance etc to create Web-based applications.
   You can develop your ASP.NET Web-based applications
    in any .NET complaint languages such as Microsoft
    Visual Basic, Visual C#, and JScript.NET.
   Developers can effortlessly access the advantage of
    these technologies, which consist of a managed
    Common Language Runtime environment, type safety,
    inheritance, and so on. With the aid of Microsoft
    VisualStudio.NET Web development becomes easier.
Advantages of ASP. Net
    ASP.NET is Part of the .NET Framework
    ASP.NET Pages are compiled
    XML-Based
    Code-Behind logic
    ASP.NET Pages are built with Server Controls
Advantages of Asp. Net contd..
    ASP.NET is Part of the .NET Framework
    The .NET Framework comprises over 3,400 classes that we can employ in our ASP.NET
     applications. We can use the classes in the .NET Framework to develop any type of
     applications.
    ASP.NET Pages are compiled
    When an ASP.NET page is first requested, it is compiled and cached on the server. This
     means that an ASP.NET page performs very rapidly. All ASP.NET code is compiled rather
     than interpreted, which permits early binding, strong typing, and just-in-time (JIT) compiling to
     native code.
    XML-Based
    ASP.NET configuration settings are stored in XML-based files, which are human readable
     and writable. Each one of our applications can have a different configuration file and we can
     extend the configuration scheme according to our necessities.
    Code-Behind logic
    The main problem with ASP Classic pages is that an *.asp page does not yield modularized
     code. Both HTML and Script are present in a single page. But Microsoft's ASP.NET
     implementation contains a new-fangled method to break up business logic code from
     presentation code.
    ASP.NET Pages are built with Server Controls
    We can easily build complex Web pages by bring together the pages out of ASP.NET server
     controls. For example, by adding validation controls to a page, we can easily validate form
     data.
ASP. net Contd..




      Developers can build their works in these
       forms
       (a) Web Forms.
       (b) Web Services.
Web Forms
    Web Forms permits us to build powerful
     forms-based Web pages. When building
     these pages, we can use Web Forms
     controls to create common UI elements
     and program them for common tasks.
     These controls permit us to rapidly build
     up a Web Form.
Web Services



     Web services enable the exchange of data in client-
      server or server-server scenarios, using standards like
      HTTP, SOAP (Simple Object Access Protocol) and
      XML messaging to move data across firewalls. XML
      provides meaning to data, and SOAP is the protocol
      that allows web services to communicate easily with
      one another. Web services are not tied to a particular
      component technology or object-calling convention. As
      a result, programs written in any language, using any
      component model, and running on any operating
      system       can      access       Web       services.
Why We need ASP. Net ?


   Compiled applications – no more server script
   Multi-language support – vb, c#, …
   Language enhancements – OOP, …
   Event-driven controls
   Code and content separation
   Configuration enhancements
   Easier deployment
   Debugging improvements
   Benefits of the CLR
   Benefits of the .NET Framework library
   Multi-Processor support
   Consistent object model
   Integrated dev environment with VS.NET
Web Project Files in VS.NET




   Typical files:
    WebForm1.aspx + WebForm1.cs (or .vb)
    AssemblyInfo.cs (or .vb)
    Web.config
    Global.asax + Global.cs (or .vb)
    Styles.css
    MyProj.vsdisco
    /bin:
       .dll (compiled code in /bin folder)

       .pdb (debug symbols)
Web Project Files in VS.NET contd..


Other files you may see:
 .ascx – User control
 .asmx – Web service file
 .axd – Trace file
 .xsd – Typed dataset + class file
 .cs or .vb – Class or VB Module file
 .resx – resource files
 + other project-specific files
Features of ASP. Net




   Intrinsic Objects overcomes from ASP – ASP.Net
    Request (HttpRequest)
    Response (HttpResponse)
    Application (HttpApplicationState)
    Session (HttpSessionState)
    Server (HttpServerUtility)
    Context (HttpContext)
    Trace (TraceContext)
Useful Page Objects


   User – of type IPrincipal and contains user and security
    information (IsInRole & Name…)
  Cache – for accessing the ASP.NET caching
    infrastructure programmatically
 Directives
    <% @ directive attribute=value %>
 @Page – for web pages
  @Control – for user controls
  @Reference – for registering a control on a page
  @OutputCache – for setting page caching options
    (Page) or fragment caching options (Control)
  Not case-sensitive
Controls



    Web Server Controls
       Automatic Browser Customization

       Datagrid, textbox, dropdown…

       Validation Controls

    HTML Server Controls (using runat=”Server”)
    Custom Controls
       User Controls

       Composite Custom Controls
Configuration



    A look at the Web.config File
       <appSettings> - used for your own settings
        (connection strings,…)
       <authentication> - how you determine who the user is

       <authorization> - what the user has access to

       <customErrors> - to redirect users to “nice” error
        pages
       <trace> - to control tracing in the application

    Custom configuration sections
    Elements & attributes are case-sensitive
Session State




    Modes:
       InProc – similar to old ASP

       StateServer – a windows service

       SqlServer – state stored in SQL Server

       Off

    Cookieless – uses a URL identifier
Building and Deploying




      Projects are compiled
         Note: changes to aspx pages may not require
          recompilation
      Compared to ASP script interpretation
      At Runtime (after you’ve built your project file):
         Step 1: the aspx page is compiled to a temporary
          dll and cached, if not already
         Step 2: the page is run

      Building in Debug vs. Release (pdb files /
       performance)
Design Time               Run Time

                                  Inherits from
System.Web.UI.Page

            Inherits from
                            WebForm1.aspx
 WebForm1.cs/.vb
                                     Compiles Into

            Compiles Into    temporary.dll

   MyProject.dll

 WebForm1 class
                                                  HTML
Tracing



      Trace. Write & Trace. Warn
      Configuring Tracing
         Per application or per page

         Enabled, request Limit, page Output, …

      Disable tracing on production applications; you can
       leave the Trace. Write methods without any impact to
       performance.
Preparing for ASP.NET


     Use Option Explicit
     Avoid using default properties
     Use parentheses and the Call keyword
     Avoid nested include files
     Organize utility functions into single files
     Try to separate code and content
Preparing for ASP.NET



      Avoid declaring functions inside <% %> delimiters–
       use <script></script>
       Use Response.Write() instead of functions that emit
       HTML ( %> <html>… <% )
      Explicitly free resources (call Close() methods)
      Avoid mixing languages in a single page
End of The Asp .Net

Weitere ähnliche Inhalte

Was ist angesagt?

Authentication and Authorization in Asp.Net
Authentication and Authorization in Asp.NetAuthentication and Authorization in Asp.Net
Authentication and Authorization in Asp.NetShivanand Arur
 
HTTP Request and Response Structure
HTTP Request and Response StructureHTTP Request and Response Structure
HTTP Request and Response StructureBhagyashreeGajera1
 
Master pages
Master pagesMaster pages
Master pagesteach4uin
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netshan km
 
Web Application Development using PHP and MySQL
Web Application Development using PHP and MySQLWeb Application Development using PHP and MySQL
Web Application Development using PHP and MySQLGanesh Kamath
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC PresentationVolkan Uzun
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentationivpol
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajaxNir Elbaz
 
Web Application Introduction
Web Application  IntroductionWeb Application  Introduction
Web Application Introductionshaojung
 
ASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewShahed Chowdhuri
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)Keshab Nath
 

Was ist angesagt? (20)

Authentication and Authorization in Asp.Net
Authentication and Authorization in Asp.NetAuthentication and Authorization in Asp.Net
Authentication and Authorization in Asp.Net
 
HTTP Request and Response Structure
HTTP Request and Response StructureHTTP Request and Response Structure
HTTP Request and Response Structure
 
Master pages
Master pagesMaster pages
Master pages
 
Web forms in ASP.net
Web forms in ASP.netWeb forms in ASP.net
Web forms in ASP.net
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Web Application Development using PHP and MySQL
Web Application Development using PHP and MySQLWeb Application Development using PHP and MySQL
Web Application Development using PHP and MySQL
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
ASP.NET Web form
ASP.NET Web formASP.NET Web form
ASP.NET Web form
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
ASP.NET Basics
ASP.NET Basics ASP.NET Basics
ASP.NET Basics
 
SignalR Overview
SignalR OverviewSignalR Overview
SignalR Overview
 
Asp.net basic
Asp.net basicAsp.net basic
Asp.net basic
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajax
 
Web Application Introduction
Web Application  IntroductionWeb Application  Introduction
Web Application Introduction
 
ASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with OverviewASP.NET Core MVC + Web API with Overview
ASP.NET Core MVC + Web API with Overview
 
Asp.net
 Asp.net Asp.net
Asp.net
 
Mvc architecture
Mvc architectureMvc architecture
Mvc architecture
 
Active Server Page(ASP)
Active Server Page(ASP)Active Server Page(ASP)
Active Server Page(ASP)
 
Web server
Web serverWeb server
Web server
 

Andere mochten auch

Microsoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationMicrosoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationRishi Kothari
 
CC 2015 Single Page Applications for the ASPNET Developer
CC 2015   Single Page Applications for the ASPNET DeveloperCC 2015   Single Page Applications for the ASPNET Developer
CC 2015 Single Page Applications for the ASPNET DeveloperAllen Conway
 
ASP.NET 4.5 webforms
ASP.NET 4.5 webformsASP.NET 4.5 webforms
ASP.NET 4.5 webformsAbhishek Sur
 
Single page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web apiSingle page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web apiAlexander Zeitler
 
Single Page Applications on JavaScript and ASP.NET MVC4
Single Page Applications on JavaScript and ASP.NET MVC4Single Page Applications on JavaScript and ASP.NET MVC4
Single Page Applications on JavaScript and ASP.NET MVC4Yuriy Shapovalov
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architectureIblesoft
 
Programming languages asp.net
Programming languages asp.netProgramming languages asp.net
Programming languages asp.netVasilios Kuznos
 
Formation joomla 1ere_session
Formation joomla 1ere_sessionFormation joomla 1ere_session
Formation joomla 1ere_sessionAhmed Seye
 

Andere mochten auch (14)

Microsoft .NET Development Platform Internationalization
Microsoft .NET Development Platform InternationalizationMicrosoft .NET Development Platform Internationalization
Microsoft .NET Development Platform Internationalization
 
ASP.NET Web Stack
ASP.NET Web StackASP.NET Web Stack
ASP.NET Web Stack
 
CC 2015 Single Page Applications for the ASPNET Developer
CC 2015   Single Page Applications for the ASPNET DeveloperCC 2015   Single Page Applications for the ASPNET Developer
CC 2015 Single Page Applications for the ASPNET Developer
 
ASP.NET 4.5 webforms
ASP.NET 4.5 webformsASP.NET 4.5 webforms
ASP.NET 4.5 webforms
 
Single page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web apiSingle page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web api
 
Mvc webforms
Mvc webformsMvc webforms
Mvc webforms
 
Migration from ASP to ASP.NET
Migration from ASP to ASP.NETMigration from ASP to ASP.NET
Migration from ASP to ASP.NET
 
Single Page Applications on JavaScript and ASP.NET MVC4
Single Page Applications on JavaScript and ASP.NET MVC4Single Page Applications on JavaScript and ASP.NET MVC4
Single Page Applications on JavaScript and ASP.NET MVC4
 
ASP.NET MVC for Begineers
ASP.NET MVC for BegineersASP.NET MVC for Begineers
ASP.NET MVC for Begineers
 
Introduction ASP
Introduction ASPIntroduction ASP
Introduction ASP
 
Asp Architecture
Asp ArchitectureAsp Architecture
Asp Architecture
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
 
Programming languages asp.net
Programming languages asp.netProgramming languages asp.net
Programming languages asp.net
 
Formation joomla 1ere_session
Formation joomla 1ere_sessionFormation joomla 1ere_session
Formation joomla 1ere_session
 

Ähnlich wie Asp.net

Ähnlich wie Asp.net (20)

Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5
 
Asp dot net final (2)
Asp dot net   final (2)Asp dot net   final (2)
Asp dot net final (2)
 
Unit - 1: ASP.NET Basic
Unit - 1:  ASP.NET BasicUnit - 1:  ASP.NET Basic
Unit - 1: ASP.NET Basic
 
Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6Learning ASP.NET 5 and MVC 6
Learning ASP.NET 5 and MVC 6
 
Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5Migrating To Visual Studio 2008 & .Net Framework 3.5
Migrating To Visual Studio 2008 & .Net Framework 3.5
 
Asp.net
Asp.netAsp.net
Asp.net
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)
 
Asp dot net final (1)
Asp dot net   final (1)Asp dot net   final (1)
Asp dot net final (1)
 
Beginners introduction to asp.net
Beginners introduction to asp.netBeginners introduction to asp.net
Beginners introduction to asp.net
 
Bn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot netBn1001 demo ppt advance dot net
Bn1001 demo ppt advance dot net
 
ASP.NET OVERVIEW
ASP.NET OVERVIEWASP.NET OVERVIEW
ASP.NET OVERVIEW
 
Web tech
Web techWeb tech
Web tech
 
Web techh
Web techhWeb techh
Web techh
 
Web tech
Web techWeb tech
Web tech
 
Web tech
Web techWeb tech
Web tech
 

Mehr von OpenSource Technologies Pvt. Ltd. (13)

OpenSource Technologies Portfolio
OpenSource Technologies PortfolioOpenSource Technologies Portfolio
OpenSource Technologies Portfolio
 
Cloud Computing Amazon
Cloud Computing AmazonCloud Computing Amazon
Cloud Computing Amazon
 
Empower your business with joomla
Empower your business with joomlaEmpower your business with joomla
Empower your business with joomla
 
Responsive Web Design Fundamentals
Responsive Web Design FundamentalsResponsive Web Design Fundamentals
Responsive Web Design Fundamentals
 
MySQL Training
MySQL TrainingMySQL Training
MySQL Training
 
PHP Shield - The PHP Encoder
PHP Shield - The PHP EncoderPHP Shield - The PHP Encoder
PHP Shield - The PHP Encoder
 
Zend Framework
Zend FrameworkZend Framework
Zend Framework
 
Introduction to Ubantu
Introduction to UbantuIntroduction to Ubantu
Introduction to Ubantu
 
WordPress Plugins
WordPress PluginsWordPress Plugins
WordPress Plugins
 
WordPress Complete Tutorial
WordPress Complete TutorialWordPress Complete Tutorial
WordPress Complete Tutorial
 
Intro dotnet
Intro dotnetIntro dotnet
Intro dotnet
 
Introduction to c#
Introduction to c#Introduction to c#
Introduction to c#
 
OST Profile
OST ProfileOST Profile
OST Profile
 

Kürzlich hochgeladen

How to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in PakistanHow to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in Pakistandanishmna97
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfAnubhavMangla3
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!Memoori
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard37
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxFIDO Alliance
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfalexjohnson7307
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfSrushith Repakula
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityVictorSzoltysek
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfdanishmna97
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe中 央社
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهMohamed Sweelam
 
Navigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiNavigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiRaviKumarDaparthi
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data SciencePaolo Missier
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdfMuhammad Subhan
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform EngineeringMarcus Vechiato
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...panagenda
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptxFIDO Alliance
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)Wonjun Hwang
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireExakis Nelite
 

Kürzlich hochgeladen (20)

How to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in PakistanHow to Check GPS Location with a Live Tracker in Pakistan
How to Check GPS Location with a Live Tracker in Pakistan
 
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdfFrisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
Frisco Automating Purchase Orders with MuleSoft IDP- May 10th, 2024.pptx.pdf
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
JohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptxJohnPollard-hybrid-app-RailsConf2024.pptx
JohnPollard-hybrid-app-RailsConf2024.pptx
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
How we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdfHow we scaled to 80K users by doing nothing!.pdf
How we scaled to 80K users by doing nothing!.pdf
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
How to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cfHow to Check CNIC Information Online with Pakdata cf
How to Check CNIC Information Online with Pakdata cf
 
Portal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russePortal Kombat : extension du réseau de propagande russe
Portal Kombat : extension du réseau de propagande russe
 
الأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهلهالأمن السيبراني - ما لا يسع للمستخدم جهله
الأمن السيبراني - ما لا يسع للمستخدم جهله
 
Navigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi DaparthiNavigating the Large Language Model choices_Ravi Daparthi
Navigating the Large Language Model choices_Ravi Daparthi
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
“Iamnobody89757” Understanding the Mysterious of Digital Identity.pdf
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
Easier, Faster, and More Powerful – Alles Neu macht der Mai -Wir durchleuchte...
 
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider  Progress from Awareness to Implementation.pptxTales from a Passkey Provider  Progress from Awareness to Implementation.pptx
Tales from a Passkey Provider Progress from Awareness to Implementation.pptx
 
CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)CORS (Kitworks Team Study 양다윗 발표자료 240510)
CORS (Kitworks Team Study 양다윗 발표자료 240510)
 
Microsoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - QuestionnaireMicrosoft CSP Briefing Pre-Engagement - Questionnaire
Microsoft CSP Briefing Pre-Engagement - Questionnaire
 

Asp.net

  • 2. What is ASP .Net ?  ASP.NET provides a programming model and infrastructure that offers the needed services for programmers to develop Web-based applications.  ASP.NET is a part of the .NET Framework, the programmers can make use of the managed Common Language Runtime (CLR) environment, type safety, and inheritance etc to create Web-based applications.  You can develop your ASP.NET Web-based applications in any .NET complaint languages such as Microsoft Visual Basic, Visual C#, and JScript.NET.  Developers can effortlessly access the advantage of these technologies, which consist of a managed Common Language Runtime environment, type safety, inheritance, and so on. With the aid of Microsoft VisualStudio.NET Web development becomes easier.
  • 3. Advantages of ASP. Net  ASP.NET is Part of the .NET Framework  ASP.NET Pages are compiled  XML-Based  Code-Behind logic  ASP.NET Pages are built with Server Controls
  • 4. Advantages of Asp. Net contd..  ASP.NET is Part of the .NET Framework  The .NET Framework comprises over 3,400 classes that we can employ in our ASP.NET applications. We can use the classes in the .NET Framework to develop any type of applications.  ASP.NET Pages are compiled  When an ASP.NET page is first requested, it is compiled and cached on the server. This means that an ASP.NET page performs very rapidly. All ASP.NET code is compiled rather than interpreted, which permits early binding, strong typing, and just-in-time (JIT) compiling to native code.  XML-Based  ASP.NET configuration settings are stored in XML-based files, which are human readable and writable. Each one of our applications can have a different configuration file and we can extend the configuration scheme according to our necessities.  Code-Behind logic  The main problem with ASP Classic pages is that an *.asp page does not yield modularized code. Both HTML and Script are present in a single page. But Microsoft's ASP.NET implementation contains a new-fangled method to break up business logic code from presentation code.  ASP.NET Pages are built with Server Controls  We can easily build complex Web pages by bring together the pages out of ASP.NET server controls. For example, by adding validation controls to a page, we can easily validate form data.
  • 5. ASP. net Contd..  Developers can build their works in these forms (a) Web Forms. (b) Web Services.
  • 6. Web Forms  Web Forms permits us to build powerful forms-based Web pages. When building these pages, we can use Web Forms controls to create common UI elements and program them for common tasks. These controls permit us to rapidly build up a Web Form.
  • 7. Web Services  Web services enable the exchange of data in client- server or server-server scenarios, using standards like HTTP, SOAP (Simple Object Access Protocol) and XML messaging to move data across firewalls. XML provides meaning to data, and SOAP is the protocol that allows web services to communicate easily with one another. Web services are not tied to a particular component technology or object-calling convention. As a result, programs written in any language, using any component model, and running on any operating system can access Web services.
  • 8. Why We need ASP. Net ?  Compiled applications – no more server script  Multi-language support – vb, c#, …  Language enhancements – OOP, …  Event-driven controls  Code and content separation  Configuration enhancements  Easier deployment  Debugging improvements  Benefits of the CLR  Benefits of the .NET Framework library  Multi-Processor support  Consistent object model  Integrated dev environment with VS.NET
  • 9. Web Project Files in VS.NET Typical files:  WebForm1.aspx + WebForm1.cs (or .vb)  AssemblyInfo.cs (or .vb)  Web.config  Global.asax + Global.cs (or .vb)  Styles.css  MyProj.vsdisco  /bin:  .dll (compiled code in /bin folder)  .pdb (debug symbols)
  • 10. Web Project Files in VS.NET contd.. Other files you may see:  .ascx – User control  .asmx – Web service file  .axd – Trace file  .xsd – Typed dataset + class file  .cs or .vb – Class or VB Module file  .resx – resource files  + other project-specific files
  • 11. Features of ASP. Net Intrinsic Objects overcomes from ASP – ASP.Net  Request (HttpRequest)  Response (HttpResponse)  Application (HttpApplicationState)  Session (HttpSessionState)  Server (HttpServerUtility)  Context (HttpContext)  Trace (TraceContext)
  • 12. Useful Page Objects  User – of type IPrincipal and contains user and security information (IsInRole & Name…)  Cache – for accessing the ASP.NET caching infrastructure programmatically Directives <% @ directive attribute=value %> @Page – for web pages  @Control – for user controls  @Reference – for registering a control on a page  @OutputCache – for setting page caching options (Page) or fragment caching options (Control)  Not case-sensitive
  • 13. Controls  Web Server Controls  Automatic Browser Customization  Datagrid, textbox, dropdown…  Validation Controls  HTML Server Controls (using runat=”Server”)  Custom Controls  User Controls  Composite Custom Controls
  • 14. Configuration  A look at the Web.config File  <appSettings> - used for your own settings (connection strings,…)  <authentication> - how you determine who the user is  <authorization> - what the user has access to  <customErrors> - to redirect users to “nice” error pages  <trace> - to control tracing in the application  Custom configuration sections  Elements & attributes are case-sensitive
  • 15. Session State  Modes:  InProc – similar to old ASP  StateServer – a windows service  SqlServer – state stored in SQL Server  Off  Cookieless – uses a URL identifier
  • 16. Building and Deploying  Projects are compiled  Note: changes to aspx pages may not require recompilation  Compared to ASP script interpretation  At Runtime (after you’ve built your project file):  Step 1: the aspx page is compiled to a temporary dll and cached, if not already  Step 2: the page is run  Building in Debug vs. Release (pdb files / performance)
  • 17. Design Time Run Time Inherits from System.Web.UI.Page Inherits from WebForm1.aspx WebForm1.cs/.vb Compiles Into Compiles Into temporary.dll MyProject.dll WebForm1 class HTML
  • 18. Tracing  Trace. Write & Trace. Warn  Configuring Tracing  Per application or per page  Enabled, request Limit, page Output, …  Disable tracing on production applications; you can leave the Trace. Write methods without any impact to performance.
  • 19. Preparing for ASP.NET  Use Option Explicit  Avoid using default properties  Use parentheses and the Call keyword  Avoid nested include files  Organize utility functions into single files  Try to separate code and content
  • 20. Preparing for ASP.NET  Avoid declaring functions inside <% %> delimiters– use <script></script> Use Response.Write() instead of functions that emit HTML ( %> <html>… <% )  Explicitly free resources (call Close() methods)  Avoid mixing languages in a single page
  • 21. End of The Asp .Net