SlideShare a Scribd company logo
.NetTable of contentsIntroduction to VS 2005 Application and Page Frameworks GUI Controls Validation Server Controls Working with Master Pages Themes & Skins Collections & Lists Data Binding Data Management with ADO.Net Working with XML Site Navigation Security State Management Caching Debugging & Error Handling File I/O & Streams Configurations
Introduction to VS 2005Visual Studio 2005 is an IDE that is used to create ASPX pages (Web application)Creation of web application also creates a set of files.Web application exists only in the location specified by IIS virtual folder.In a system, the web root folder is //localhost This is the virtual folderThe physical path for this virtual folder is \\inetpub\wwwroot
We can see these windows when we open the Visual StudioProperty Window – Shows the properties of a control(Page or button or textbox)Solution Explorer – Shows the files that a opened project hasOutput Window – Shows the result of a compilation or execution of a programError List – Shows the compilation errors etc.What can you find in a VS
IIS – Internet Information ServicesIIS is a web server that comes along with .NetWe can configure IIS using “inetmgr”In the Start Menu, choose Run and type inetmgr. We will get a window that lists the websites present in the system.For creating a virtual directory, right click on the default website and select New -> Virtual Directory. Give the alias name Give the physical pathGive the access permissions and click finish.
ASP .NetUsed to create web applications and web services that run under IISASP.NET is a collection of .NET classes that collaborate to process an HTTP request and generate an HTTP responseHelps us in creating Dynamic Web pagesDynamic web pages – Pages will be generated at the server based on the user’s request and then given back to the client (user)
ASP .Net FrameworkASP.NET is a managed server-side framework For building applications based on HTTP, HTML, XML and SOAPASP.NET relies on IIS for an HTTP entry pointASP.NET supports building HTML-based Web ApplicationsBased on ASP.NET pages, Web forms and server-side controlsASP.NET supports building Web ServicesBased on Web service classes and WebMethods
Life cycle of a web pagePage_Init This is called when page is initialized. We can declare some variables which need to be initialized before page is loadedPage_LoadThe server controls are loaded in the page .This event is called every time when page is loadedControl_EventThis event is fired when control like button are clicked or changedPage_UnloadThis event occurs when a page is Unloaded from memoryPage_DisposeThis event occurs when a page is released from memory
Life cycle of a web applicationThe Life of web application begins when a user requests for a page through the browser (client)When IIS receives request from client it calls ASP. NET  worker processThe ASP.NET worker process loads the assembly The executable creates an instance of web formGenerates the HTML page to respond to the requestPosts the response to browser  and then it destroys the instance of the web formThen browser receives the generated HTML
Client Performs tasks like button clickThe page’s data is sent back to serverWhen server receives this page  it creates new instance of web form Processes the event occurredThen again send back HTML and destroys the pageWhen user stops the web application for a period of time session endsLife cycle of a web application (Contd..)
ASP .Net AdvantagesExecutable portion of a web application are  compiledEnriched tool supportApplications are based on CLRCommon Language RuntimeOn the fly updates deployed without restarting serverBetter session managementIntegration with ADO.NETBuilt in features for cachingCreate XML Web services Browser-independentLanguage-independent
Application and Page Framework
ASP .Net ApplicationsEach application is based on IIS virtual directory
Each application is contained within a physical directory
Each application runs in its own isolated AppDomain
Namespace must for this application is System.WebASP .Net PagesCode and Design are separatedDesign file – ASPX fileContains ASPX or HTML tagsCode file – called as code behind fileHas the programming logicProgramming language can be C#VB .Net
ASP .Net Pages (Contd..)ASPX Page has<asp:Button id=“LookUp“ OnClick=btnSubmit_Click“ />C# file will havebtnSubmit_Click() { ... }The code behind page is inherited from System.Web.UI.Page classThe .aspx file containing the user interface is inherited from code behind  class
Files in a Web application ProjectAssemblyInfo.cs All the information about assembly including version, company name etcDefault.aspxThe visual description of a Web form. Default.aspx.csThe code behind that responds to events on the Web form Default.aspx.resxXML resources used by web formGlobal.asax The global events that occur in web applicationsWeb.configConfiguration contents like authentication mode, error files etc.
GUI Controls
Server Control
Web ControlsListControlListBoxCheckBoxListButtonTableWebControlSystem.Web.UI.ControlSystem.ObjectTextBox......
Postback eventThese events cause the web page to be sent back to the server for immediate processingWhen page is posted back ,the Page_Init, Page _Load events are handled The page is submitted back and renders a new version of itself back to the user
Validation ControlsASP .Net provides 5 validation controls that are used to check the validity of data entered by the user in the server controls on the web page.Client side validation is also possible through a Jscript library WebUIValidation.jsRequired field validatorRegular expression validatorCompare validatorRange validatorCustom validatorValidation summary
Required Field ValidatorTo check whether a control contains dataProperties:ControlToValidateErrorMessageTextMethod:Validate
Regular Expression ValidatorTo check whether the entered data matches a specific formatPropertiesControlToValidateValidationExpressionErrorMessageMethodValidate
Compare ValidatorTo compare values entered in two controlsProperties:ControlToCompareControlToValidateErrorMessageValueToCompareMethod:Validate
Range ValidatorTo compare whether the entered value is between two specified valuesProperties:ControlToValidateErrorMessageTypeMaximumValueMinimumValueMethod:Validate
To Check the validity of an entered item using a client-side script or a server-side code, or bothProperties:ControlToValidateErrorMessageEvents:ServerValidateMethod:OnServerValidateValidateCustom Validator
To Display validation errors in a central location or display a general validation error descriptionProperties:HeadTextShowMessageBoxShowSummaryValidation Summary
We can create our own controls in addition to HTML and Web controlsUser controls offer you an easy way to partition and reuse common user interface (UI) functionality across your ASP.NET Web applicationsUser controls are not compiled until run timeYou can simply drag and drop them on the page and start using themTo create a user control:Add a new item ( select user control as a template)  and give it a name – Heading.ascxThe following description can be seen in HTML view	<%@Control Language="c#" AutoEventWireup="false" Codebehind="Heading.ascx.cs“>User Controls
To use a user control, just drag the ascx file from the solution explorer and drop it on the design area of the aspx pageOr give like this in the html view of the aspx pageIn the head portion<%@Register TagPrefix="uc1" TagName="Heading" src="Heading.ascx"%>In the body portion<uc1 id=“user1”/>Using a User Control
The Calendar Web server control displays a traditional one-month calendar on your Web Forms pagesFew properties:SelectedDateSelectedDatesBackColorFew methods:AddDays()AddMonths()AddYears()GetMonth()GetYear()GetDayOfWeek()IsLeapYear()Calendar Control
DateTime is a static class. Members can be accessed via DateTime.Now and so on.The DateTime value type represents dates and times with values ranging from 12:00:00 midnight, January 1, 0001 Common Era to 11:59:59 P.M., December 31, 9999 C.E.Few properties:TodayNowDateFew Methods:AddDays()AddMonths()Compare()ToLongDateString()ToShortDateString()DateTime
Full-featured list outputDefault is to show all columnsCan specify a subset of columns to displayProvides templatesStandard CustomProvides pagingProvides data updatesDataGrid Control
Provides simple output of list of itemsTemplates provide the visual formIt iterates over the bound dataDisplay format of data is managedDoes not support pagingProvides templates for separatorsDoes not provide data updatesRepeater Control
Ad

More Related Content

What's hot (20)

Ch 04 asp.net application
Ch 04 asp.net application Ch 04 asp.net application
Ch 04 asp.net application
Madhuri Kavade
 
Parallelminds.asp.net with sp
Parallelminds.asp.net with spParallelminds.asp.net with sp
Parallelminds.asp.net with sp
parallelminder
 
Asp .net web form fundamentals
Asp .net web form fundamentalsAsp .net web form fundamentals
Asp .net web form fundamentals
Gopal Ji Singh
 
ASP.NET - Web Programming
ASP.NET - Web ProgrammingASP.NET - Web Programming
ASP.NET - Web Programming
baabtra.com - No. 1 supplier of quality freshers
 
Asp.net server control
Asp.net  server controlAsp.net  server control
Asp.net server control
Sireesh K
 
Asp.net.
Asp.net.Asp.net.
Asp.net.
Naveen Sihag
 
ASP.NET User Controls - 20090828
ASP.NET User Controls - 20090828ASP.NET User Controls - 20090828
ASP.NET User Controls - 20090828
Viral Patel
 
Asp.net controls
Asp.net controlsAsp.net controls
Asp.net controls
baabtra.com - No. 1 supplier of quality freshers
 
Asp
AspAsp
Asp
yuvaraj72
 
Ajax control tool kit
Ajax control tool kitAjax control tool kit
Ajax control tool kit
Vidhi Patel
 
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl....net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
.net training | learn .net | Microsoft dot net Course | Microsoft dot net onl...
Nancy Thomas
 
Ajax
AjaxAjax
Ajax
Gayathri Ganesh
 
Controls in asp.net
Controls in asp.netControls in asp.net
Controls in asp.net
baabtra.com - No. 1 supplier of quality freshers
 
Csphtp1 20
Csphtp1 20Csphtp1 20
Csphtp1 20
HUST
 
Programming web application
Programming web applicationProgramming web application
Programming web application
aspnet123
 
ASP
ASPASP
ASP
Ramasubbu .P
 
A View about ASP .NET and their objectives
A View about ASP .NET and their objectivesA View about ASP .NET and their objectives
A View about ASP .NET and their objectives
Department of Computer Science, Bharathidasan University, Tiruchirappalli
 
Ajax control asp.net
Ajax control asp.netAjax control asp.net
Ajax control asp.net
Sireesh K
 
.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt.Net course-in-mumbai-ppt
.Net course-in-mumbai-ppt
vibrantuser
 
ASP.NET 4.0 Roadmap
ASP.NET 4.0 RoadmapASP.NET 4.0 Roadmap
ASP.NET 4.0 Roadmap
Harish Ranganathan
 

Similar to ASP.Net Presentation Part1 (20)

Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
Iblesoft
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
Jignesh Aakoliya
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
Akhil Mittal
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
Vivek Singh Chandel
 
03 asp.net session04
03 asp.net session0403 asp.net session04
03 asp.net session04
Vivek Singh Chandel
 
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide showThe complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
Subhas Malik
 
Asp dot net long
Asp dot net longAsp dot net long
Asp dot net long
Amelina Ahmeti
 
Chapter 09
Chapter 09Chapter 09
Chapter 09
Terry Yoast
 
Introductionto asp net-ppt
Introductionto asp net-pptIntroductionto asp net-ppt
Introductionto asp net-ppt
tmasyam
 
Asp.net tips
Asp.net tipsAsp.net tips
Asp.net tips
actacademy
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
application developer
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
phantrithuc
 
How to develop asp web applications
How to develop asp web applicationsHow to develop asp web applications
How to develop asp web applications
Deepankar Pathak
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
Rishi Kothari
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web Forms
SAMIR BHOGAYTA
 
NET_Training.pptx
NET_Training.pptxNET_Training.pptx
NET_Training.pptx
ssuserc28c7c1
 
Lecture slides_Introduction to ASP.NET presentation
Lecture slides_Introduction to ASP.NET presentationLecture slides_Introduction to ASP.NET presentation
Lecture slides_Introduction to ASP.NET presentation
ssuserbf6ebe
 
Asp.net control
Asp.net controlAsp.net control
Asp.net control
Paneliya Prince
 
ASP.NET Interview Questions PDF By ScholarHat
ASP.NET  Interview Questions PDF By ScholarHatASP.NET  Interview Questions PDF By ScholarHat
ASP.NET Interview Questions PDF By ScholarHat
Scholarhat
 
Web tech
Web techWeb tech
Web tech
SangeethaSasi1
 
Asp.net architecture
Asp.net architectureAsp.net architecture
Asp.net architecture
Iblesoft
 
Overview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company indiaOverview of ASP.Net by software outsourcing company india
Overview of ASP.Net by software outsourcing company india
Jignesh Aakoliya
 
C sharp and asp.net interview questions
C sharp and asp.net interview questionsC sharp and asp.net interview questions
C sharp and asp.net interview questions
Akhil Mittal
 
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide showThe complete ASP.NET (IIS) Tutorial with code example in power point slide show
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
Subhas Malik
 
Introductionto asp net-ppt
Introductionto asp net-pptIntroductionto asp net-ppt
Introductionto asp net-ppt
tmasyam
 
Aspnet architecture
Aspnet architectureAspnet architecture
Aspnet architecture
phantrithuc
 
How to develop asp web applications
How to develop asp web applicationsHow to develop asp web applications
How to develop asp web applications
Deepankar Pathak
 
Developing an ASP.NET Web Application
Developing an ASP.NET Web ApplicationDeveloping an ASP.NET Web Application
Developing an ASP.NET Web Application
Rishi Kothari
 
Intro To Asp Net And Web Forms
Intro To Asp Net And Web FormsIntro To Asp Net And Web Forms
Intro To Asp Net And Web Forms
SAMIR BHOGAYTA
 
Lecture slides_Introduction to ASP.NET presentation
Lecture slides_Introduction to ASP.NET presentationLecture slides_Introduction to ASP.NET presentation
Lecture slides_Introduction to ASP.NET presentation
ssuserbf6ebe
 
ASP.NET Interview Questions PDF By ScholarHat
ASP.NET  Interview Questions PDF By ScholarHatASP.NET  Interview Questions PDF By ScholarHat
ASP.NET Interview Questions PDF By ScholarHat
Scholarhat
 
Ad

Recently uploaded (20)

AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
tecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdftecnologias de las primeras civilizaciones.pdf
tecnologias de las primeras civilizaciones.pdf
fjgm517
 
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep DiveDesigning Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
Designing Low-Latency Systems with Rust and ScyllaDB: An Architectural Deep Dive
ScyllaDB
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Build Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For DevsBuild Your Own Copilot & Agents For Devs
Build Your Own Copilot & Agents For Devs
Brian McKeiver
 
Linux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdfLinux Professional Institute LPIC-1 Exam.pdf
Linux Professional Institute LPIC-1 Exam.pdf
RHCSA Guru
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
HCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser EnvironmentsHCL Nomad Web – Best Practices and Managing Multiuser Environments
HCL Nomad Web – Best Practices and Managing Multiuser Environments
panagenda
 
Drupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy ConsumptionDrupalcamp Finland – Measuring Front-end Energy Consumption
Drupalcamp Finland – Measuring Front-end Energy Consumption
Exove
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
How analogue intelligence complements AI
How analogue intelligence complements AIHow analogue intelligence complements AI
How analogue intelligence complements AI
Paul Rowe
 
Mobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi ArabiaMobile App Development Company in Saudi Arabia
Mobile App Development Company in Saudi Arabia
Steve Jonas
 
Cybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure ADCybersecurity Identity and Access Solutions using Azure AD
Cybersecurity Identity and Access Solutions using Azure AD
VICTOR MAESTRE RAMIREZ
 
TrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business ConsultingTrsLabs - Fintech Product & Business Consulting
TrsLabs - Fintech Product & Business Consulting
Trs Labs
 
Heap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and DeletionHeap, Types of Heap, Insertion and Deletion
Heap, Types of Heap, Insertion and Deletion
Jaydeep Kale
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Generative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in BusinessGenerative Artificial Intelligence (GenAI) in Business
Generative Artificial Intelligence (GenAI) in Business
Dr. Tathagat Varma
 
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes Partner Innovation Updates for May 2025
ThousandEyes
 
Ad

ASP.Net Presentation Part1

  • 1. .NetTable of contentsIntroduction to VS 2005 Application and Page Frameworks GUI Controls Validation Server Controls Working with Master Pages Themes & Skins Collections & Lists Data Binding Data Management with ADO.Net Working with XML Site Navigation Security State Management Caching Debugging & Error Handling File I/O & Streams Configurations
  • 2. Introduction to VS 2005Visual Studio 2005 is an IDE that is used to create ASPX pages (Web application)Creation of web application also creates a set of files.Web application exists only in the location specified by IIS virtual folder.In a system, the web root folder is //localhost This is the virtual folderThe physical path for this virtual folder is \\inetpub\wwwroot
  • 3. We can see these windows when we open the Visual StudioProperty Window – Shows the properties of a control(Page or button or textbox)Solution Explorer – Shows the files that a opened project hasOutput Window – Shows the result of a compilation or execution of a programError List – Shows the compilation errors etc.What can you find in a VS
  • 4. IIS – Internet Information ServicesIIS is a web server that comes along with .NetWe can configure IIS using “inetmgr”In the Start Menu, choose Run and type inetmgr. We will get a window that lists the websites present in the system.For creating a virtual directory, right click on the default website and select New -> Virtual Directory. Give the alias name Give the physical pathGive the access permissions and click finish.
  • 5. ASP .NetUsed to create web applications and web services that run under IISASP.NET is a collection of .NET classes that collaborate to process an HTTP request and generate an HTTP responseHelps us in creating Dynamic Web pagesDynamic web pages – Pages will be generated at the server based on the user’s request and then given back to the client (user)
  • 6. ASP .Net FrameworkASP.NET is a managed server-side framework For building applications based on HTTP, HTML, XML and SOAPASP.NET relies on IIS for an HTTP entry pointASP.NET supports building HTML-based Web ApplicationsBased on ASP.NET pages, Web forms and server-side controlsASP.NET supports building Web ServicesBased on Web service classes and WebMethods
  • 7. Life cycle of a web pagePage_Init This is called when page is initialized. We can declare some variables which need to be initialized before page is loadedPage_LoadThe server controls are loaded in the page .This event is called every time when page is loadedControl_EventThis event is fired when control like button are clicked or changedPage_UnloadThis event occurs when a page is Unloaded from memoryPage_DisposeThis event occurs when a page is released from memory
  • 8. Life cycle of a web applicationThe Life of web application begins when a user requests for a page through the browser (client)When IIS receives request from client it calls ASP. NET worker processThe ASP.NET worker process loads the assembly The executable creates an instance of web formGenerates the HTML page to respond to the requestPosts the response to browser and then it destroys the instance of the web formThen browser receives the generated HTML
  • 9. Client Performs tasks like button clickThe page’s data is sent back to serverWhen server receives this page it creates new instance of web form Processes the event occurredThen again send back HTML and destroys the pageWhen user stops the web application for a period of time session endsLife cycle of a web application (Contd..)
  • 10. ASP .Net AdvantagesExecutable portion of a web application are compiledEnriched tool supportApplications are based on CLRCommon Language RuntimeOn the fly updates deployed without restarting serverBetter session managementIntegration with ADO.NETBuilt in features for cachingCreate XML Web services Browser-independentLanguage-independent
  • 12. ASP .Net ApplicationsEach application is based on IIS virtual directory
  • 13. Each application is contained within a physical directory
  • 14. Each application runs in its own isolated AppDomain
  • 15. Namespace must for this application is System.WebASP .Net PagesCode and Design are separatedDesign file – ASPX fileContains ASPX or HTML tagsCode file – called as code behind fileHas the programming logicProgramming language can be C#VB .Net
  • 16. ASP .Net Pages (Contd..)ASPX Page has<asp:Button id=“LookUp“ OnClick=btnSubmit_Click“ />C# file will havebtnSubmit_Click() { ... }The code behind page is inherited from System.Web.UI.Page classThe .aspx file containing the user interface is inherited from code behind class
  • 17. Files in a Web application ProjectAssemblyInfo.cs All the information about assembly including version, company name etcDefault.aspxThe visual description of a Web form. Default.aspx.csThe code behind that responds to events on the Web form Default.aspx.resxXML resources used by web formGlobal.asax The global events that occur in web applicationsWeb.configConfiguration contents like authentication mode, error files etc.
  • 21. Postback eventThese events cause the web page to be sent back to the server for immediate processingWhen page is posted back ,the Page_Init, Page _Load events are handled The page is submitted back and renders a new version of itself back to the user
  • 22. Validation ControlsASP .Net provides 5 validation controls that are used to check the validity of data entered by the user in the server controls on the web page.Client side validation is also possible through a Jscript library WebUIValidation.jsRequired field validatorRegular expression validatorCompare validatorRange validatorCustom validatorValidation summary
  • 23. Required Field ValidatorTo check whether a control contains dataProperties:ControlToValidateErrorMessageTextMethod:Validate
  • 24. Regular Expression ValidatorTo check whether the entered data matches a specific formatPropertiesControlToValidateValidationExpressionErrorMessageMethodValidate
  • 25. Compare ValidatorTo compare values entered in two controlsProperties:ControlToCompareControlToValidateErrorMessageValueToCompareMethod:Validate
  • 26. Range ValidatorTo compare whether the entered value is between two specified valuesProperties:ControlToValidateErrorMessageTypeMaximumValueMinimumValueMethod:Validate
  • 27. To Check the validity of an entered item using a client-side script or a server-side code, or bothProperties:ControlToValidateErrorMessageEvents:ServerValidateMethod:OnServerValidateValidateCustom Validator
  • 28. To Display validation errors in a central location or display a general validation error descriptionProperties:HeadTextShowMessageBoxShowSummaryValidation Summary
  • 29. We can create our own controls in addition to HTML and Web controlsUser controls offer you an easy way to partition and reuse common user interface (UI) functionality across your ASP.NET Web applicationsUser controls are not compiled until run timeYou can simply drag and drop them on the page and start using themTo create a user control:Add a new item ( select user control as a template) and give it a name – Heading.ascxThe following description can be seen in HTML view <%@Control Language="c#" AutoEventWireup="false" Codebehind="Heading.ascx.cs“>User Controls
  • 30. To use a user control, just drag the ascx file from the solution explorer and drop it on the design area of the aspx pageOr give like this in the html view of the aspx pageIn the head portion<%@Register TagPrefix="uc1" TagName="Heading" src="Heading.ascx"%>In the body portion<uc1 id=“user1”/>Using a User Control
  • 31. The Calendar Web server control displays a traditional one-month calendar on your Web Forms pagesFew properties:SelectedDateSelectedDatesBackColorFew methods:AddDays()AddMonths()AddYears()GetMonth()GetYear()GetDayOfWeek()IsLeapYear()Calendar Control
  • 32. DateTime is a static class. Members can be accessed via DateTime.Now and so on.The DateTime value type represents dates and times with values ranging from 12:00:00 midnight, January 1, 0001 Common Era to 11:59:59 P.M., December 31, 9999 C.E.Few properties:TodayNowDateFew Methods:AddDays()AddMonths()Compare()ToLongDateString()ToShortDateString()DateTime
  • 33. Full-featured list outputDefault is to show all columnsCan specify a subset of columns to displayProvides templatesStandard CustomProvides pagingProvides data updatesDataGrid Control
  • 34. Provides simple output of list of itemsTemplates provide the visual formIt iterates over the bound dataDisplay format of data is managedDoes not support pagingProvides templates for separatorsDoes not provide data updatesRepeater Control
  • 35. HeaderTemplateRendered before all data bound rowsItemTemplateRendered for each row in the data sourceAlternatingItemTemplateRendered for every other row SeparatorTemplateRendered between each rowFooterTemplateRendered after all data bound rowsStandard templates for Repeater controls
  • 36. To bind embedded controls to the data source of the container controlDataBinder.Eval() method is usedSyntax<%#DataBinder.Eval(Container.DataItem,“DataFieldname")%>Container represents the container for data items DataFieldname represents the name of data item fieldBinding data