SlideShare a Scribd company logo
1 of 30
Developing Web Applications Using ASP.NET

Rationale


                In today’s competitive business environment, the
                information should be accessible from anywhere, anytime.
                This can be done by creating presentable and informative
                Web applications.
                A Web application is an application delivered to users from
                a Web server over a network such as the World Wide Web
                or an intranet.
                Web applications enable you to share and access
                information over the Internet and corporate intranets.
                Content on the various pages in a Web application can be
                of two types:
                 • Static: Consists only of HTML pages and does not respond
                   dynamically to the actions performed by users.
                 • Dynamic: Changes every time the user visits the page and/or
                   responds dynamically to the actions performed by users.
     Ver. 1.0                                                          Slide 1 of 30
Developing Web Applications Using ASP.NET

Rationale (Contd.)


                Dynamic Web pages provide several advantages over static
                Web pages.
                To create a dynamic Web page, you must include a script in
                the page.
                The script used to make a Web page dynamic can be of two
                types:
                • Client-side script
                • Server-side script
                A single page can also contain both client-side and
                server-side scripts.




     Ver. 1.0                                                      Slide 2 of 30
Developing Web Applications Using ASP.NET

Rationale (Contd.)


                Client-side script:
                   Is downloaded on the browser and runs on the client side
                   Offers an easy way to enhance the functionality and user
                   experience of the site
                   Examples of client-side scripting technologies: Javascript,
                   Jscript, and VBScript
                Server-side script:
                 • Runs on the server that hosts the Web application
                 • Offers a mechanism to access server-side resources, such as
                   databases, that are not accessible on the client side
                 • Examples of server-side scripting technologies: ASP, PHP,
                   and JSP
                When server-side scripting is used, the server-side scripting
                must be supported by the hosting server.

     Ver. 1.0                                                              Slide 3 of 30
Developing Web Applications Using ASP.NET

Rationale (Contd.)


                What is ASP.NET?
                  ASP.NET is a Web application framework marketed by
                  Microsoft that can be used to build dynamic Web sites, Web
                  applications, and XML Web services.
                  It is part of Microsoft's .NET platform and is the successor to
                  Microsoft's Active Server Pages (ASP) technology.
                  Applications developed using ASP.NET must be hosted on an
                  Internet Information Services (IIS) server.




     Ver. 1.0                                                             Slide 4 of 30
Developing Web Applications Using ASP.NET

Rationale (Contd.)


                The following figure describes how an IIS server processes
                the request for an ASP.NET file:




     Ver. 1.0                                                       Slide 5 of 30
Developing Web Applications Using ASP.NET

Rationale (Contd.)


                ASP.NET provides the following advantages:
                   Enables you to access information from data sources, such as
                   back-end databases and text files that are stored on a Web
                   server.
                   Provides enriched tool support in the form of Visual Studio
                   .NET integrated development environment (VS .NET IDE).
                   Enables you to develop your application in any .NET language.
                   Enables you to build user interfaces that separate application
                   logic from presentation content.
                   Enables you to manage Web applications by storing the
                   configuration information in an XML file.
                   Helps improve developer productivity and provides facilities for
                   improving the performance, reliability, and scalability of Web
                   applications.



     Ver. 1.0                                                             Slide 6 of 30
Developing Web Applications Using ASP.NET

Objectives


                In this session, you will learn to:
                   Describe the types of Web sites that you can create with Visual
                   Studio 2005
                   Describe the concept of a default event handler for an object
                   Explain how the machine.config and web.config files control
                   the settings for a Web application
                   Create a new Web application
                   Configure and build a Web application




     Ver. 1.0                                                             Slide 7 of 30
Developing Web Applications Using ASP.NET

Web Site Types


                • You can use Visual Studio 2005 to create the following Web
                  site types:
                      File-system Web sites
                      Local Internet Information Services (IIS) Web sites
                      Remote IIS Web sites
                      FTP sites




     Ver. 1.0                                                               Slide 8 of 30
Developing Web Applications Using ASP.NET

Web Site Types (Contd.)


                File-System Web sites:
                   The ASP.NET Development Server acts as a Web server.
                   Files are stored in any folder on the local computer’s file
                   system or in a shared network folder.
                   Advantages:
                       The site can be accessed only from the local computer, reducing
                       security vulnerabilities.
                       You do not require IIS to be able to create and develop
                       File-System Web sites.
                       You do not need administrative rights to create or debug local
                       Web sites.
                       If the computer is configured to allow remote desktop
                       connections, multiple users can create and debug local sites at
                       the same time.




     Ver. 1.0                                                                 Slide 9 of 30
Developing Web Applications Using ASP.NET

Web Site Types (Contd.)


                • Disadvantages:
                      Web site cannot be accessed from a remote computer.
                      You can not test IIS features, such as HTTP based
                      authentication, application pooling, and ISAPI filters.




     Ver. 1.0                                                                   Slide 10 of 30
Developing Web Applications Using ASP.NET

Web Site Types (Contd.)


                Local IIS Web site:
                   An IIS server installed on the local computer acts as a Web
                   server.
                   The pages and folders for the site are stored in a folder under
                   the default IIS folder for Web sites (Inetpubwwwroot).
                   Web site can be browsed by using localhost as a server name.
                   Advantages:
                     •   The site is accessible from other computers.
                     •   You can test IIS features, such as HTTP-based authentication,
                         application pooling, and ISAPI filters.
                   Disadvantages:
                         You must have administrative rights to create or debug IIS Web
                         sites.
                         Only one user can debug IIS at any one time.
                         Local IIS Web sites have remote access enabled by default.


     Ver. 1.0                                                                   Slide 11 of 30
Developing Web Applications Using ASP.NET

Web Site Types (Contd.)


                Remote IIS Web site:
                   An IIS server running on a remote computer that is configured
                   with FrontPage Server Extensions acts as a Web server.
                   The pages and folders for the site are stored in the default IIS
                   folder on the remote computer.
                   Web site can be browsed by using the server name of the remote
                   site.
                   Advantages:
                    •   Web site can be tested on the server where it will actually be
                        deployed.
                    •   Multiple developers can work against the same site at the same time.
                   Disadvantages:
                        Configuration for debugging can be complex.
                        Only one developer can debug the application at any one time, all
                        other requests are suspended while the developer is debugging the
                        Web site.

     Ver. 1.0                                                                  Slide 12 of 30
Developing Web Applications Using ASP.NET

Web Site Types (Contd.)


                FTP site:
                   The site exists on a remote computer that has been configured
                   as an FTP server.
                   You must have read/write privileges on the remote server to
                   create and edit pages on that server.
                   The server computer must have a browse location to enable a
                   user to see the Web pages from an FTP site in a browser.
                   Advantages:
                    • You can test the Web site on the server where it will actually be
                      deployed.
                   Disadvantages:
                      You do not have local copies of the files unless you copy them
                      yourself.




     Ver. 1.0                                                                   Slide 13 of 30
Developing Web Applications Using ASP.NET

A Tour of Visual Web Developer


                The most commonly used windows and tools available in
                Visual Web Developer are:
                   Toolbars
                   Solution Explorer
                   Document windows
                   Properties windows
                   View tabs
                   Toolbox
                   Server Explorer




     Ver. 1.0                                                    Slide 14 of 30
Developing Web Applications Using ASP.NET

 A Tour of Visual Web Developer (Contd.)
                               Document Window



                                                         Solution
                                                         Explorer




 Toolbars




 Toolbox
                                                          Properties
                                                           Window




 View Tabs




Server Explorer




              Ver. 1.0                           Slide 15 of 30
Developing Web Applications Using ASP.NET

ASP.NET Web Page Code Model


                •   A Microsoft ASP.NET Web page consists of two parts:
                       Visual elements
                       Programming logic for the page
                •   ASP.NET provides two models for managing the visual elements
                    and code:
                       Single-file page model
                       Code-behind page model




     Ver. 1.0                                                             Slide 16 of 30
Developing Web Applications Using ASP.NET

ASP.NET Web Page Code Model (Contd.)


                •   The Single-File Page Model:
                     • The page’s HTML markup and its programming code are in the
                       same physical .aspx (extension) file.
                     • The programming code is contained in a <script> block that
                       specifies the attribute runat=“server”.
                     • At run time, the compiler converts a single-file page into a
                       class that derives from the System.Web.UI.Page.




     Ver. 1.0                                                              Slide 17 of 30
Developing Web Applications Using ASP.NET

ASP.NET Web Page Code Model (Contd.)


                •   Advantages of the single-file model include the following:
                       In pages without a lot of code, keeping the programming code
                       and the HTML markup in a single file proves to be very
                       convenient while studying the file.
                       Pages written by using the single-file model are slightly easier
                       to deploy or to send to another programmer because there is
                       only one file.
                       A single-file page is easier to rename because there is no
                       dependency between files.
                       Managing files in a source code control system is slightly
                       easier because the page is self-contained in a single file.




     Ver. 1.0                                                                  Slide 18 of 30
Developing Web Applications Using ASP.NET

ASP.NET Web Page Code Model (Contd.)


                •   The Code-Behind Page Model:
                       HTML markup are kept in one file and the programming code
                       in another file.
                       There are two differences in the .aspx page between the
                       single-file and the code-behind models:
                        • In the code-behind model, there is no <script> block with the
                          runat="server" attribute.
                        • In the code-behind model, the @Page directive contains attributes
                          that reference an external file and a class.
                    • The code file contains a partial class, which indicates that the
                      class contains only some of the total code that makes up the
                      full class for the page.
                    • The partial class inherits from a base Page class (either
                      System.Web.UI.Page or a class derived from
                      System.Web.UI.Page).


     Ver. 1.0                                                                      Slide 19 of 30
Developing Web Applications Using ASP.NET

ASP.NET Web Page Code Model (Contd.)


                •   The Code-Behind Page Model: (Contd.)
                     • The .aspx file contains an Inherits attribute that points to the
                       code-behind partial class.
                     • When the page is compiled, ASP.NET creates a new partial
                       class for the .aspx file. This class is a peer of the code-behind
                       partial class file and contains the declarations for the page’s
                       controls.
                     • Finally, ASP.NET generates a class that inherits from the
                       partial class created from the .aspx file and the code-behind
                       partial class.
                     • The generated class is compiled into an assembly that runs in
                       order to render output to the browser.




     Ver. 1.0                                                                  Slide 20 of 30
Developing Web Applications Using ASP.NET

ASP.NET Web Page Code Model (Contd.)


                •   Advantages of the code-behind model include the following:
                       Code-behind pages offer a clean separation of the HTML
                       markup (user interface) and code.
                       Code is not exposed to graphic designers or others who are
                       working only with the page HTML markup.




     Ver. 1.0                                                               Slide 21 of 30
Developing Web Applications Using ASP.NET

Default Event Handling in Web Applications


                •   The ASP.NET 2.0 Framework provides many different objects
                    (such as page, buttons).
                •   These objects enable quick and easy development of Web
                    applications.
                •   Many objects expose one or more events.
                •   When an object exposes multiple events, one of the events
                    is designated as the default event.
                •   To create the event handler for the default event, you can
                    simply double-click on the object in the Visual Studio 2005
                    IDE.
                •   This will create an empty event procedure for the default
                    event.



     Ver. 1.0                                                           Slide 22 of 30
Developing Web Applications Using ASP.NET

Web Configuration Files


                Web application settings are contained in a hierarchy of XML
                based configuration files.
                These configuration files contain settings for Microsoft .NET
                Framework applications, including ASP.NET Web applications.
                ASP.NET allows you to easily edit the configuration data before,
                or after applications are deployed on the server.
                The files in the configuration hierarchy allow you to make
                configuration settings at different levels.




     Ver. 1.0                                                            Slide 23 of 30
Developing Web Applications Using ASP.NET

Web Configuration Files (Contd.)


                  The levels, the corresponding configuration files, and their
                  descriptions are listed in the following table:
                Level                 File Name        Description

                Server Settings       Machine.config   Present at the root of the configuration hierarchy;
                                                       It defines global configuration settings for all .NET
                                                       Framework applications.
                Root Web Settings     Web.config       Present in the same directory as machine.config;
                                                       It defines configuration settings for all ASP.NET
                                                       applications.
                Web site settings     Web.config       Present in the root directory of each IIS Web site;
                (optional)                             contains settings that are specific to the Web site.
                Application root      Web.config       Present in the root directory of each application;
                settings (optional)                    contains settings that are specific to the
                                                       application.
                Application           Web.config       Present in a subfolder of the application root;
                subfolder                              contains settings for specific section of a Web
                (optional)                             application.



     Ver. 1.0                                                                                   Slide 24 of 30
Developing Web Applications Using ASP.NET

<customError> Element


                •   The <customErrors> element provides information about
                    how custom error messages are handled for a Microsoft ASP.NET
                    application.
                •   It can be defined in the global web.config file for the host
                    computer and in the web.config file for the application.
                •   The customErrors element has the following syntax:
                     <customErrors
                        defaultRedirect="url"
                        mode="On|Off|RemoteOnly">
                        <error
                            statusCode="statuscode"
                            redirect="url"/>
                     </customErrors>


     Ver. 1.0                                                            Slide 25 of 30
Developing Web Applications Using ASP.NET

<compilation> Element


                •   The <compilation> element can be defined in the system.web
                    section of a configuration file.
                •   It enables you to specify compilation settings for a Web
                    application.
                •   Example of a simple configuration for the compilation settings of
                    an application:
                     <configuration>
                        <system.web>
                            <compilation defaultLanguage="VB"
                               debug="true"
                               numRecompilesBeforeAppRestart="15">
                            </compilation>
                        </system.web>
                     </configuration>

     Ver. 1.0                                                                Slide 26 of 30
Developing Web Applications Using ASP.NET

Demo: Creating a Web Application


                Problem Statement:
                   You are a developer in the Adventure Works organization, a
                   fictitious bicycle manufacturer. You have been asked to assist
                   in creating a new Business-to-Consumer (B2C) Web
                   application and a related Business-to-Employee (B2E) extranet
                   portal.
                   Decisions on the design of the application have already been
                   made. You have been asked to carry out a number of specific
                   tasks to implement various elements of this design. As part of
                   the first phase of the B2C development, you have been asked
                   to create a new Web application and to build a prototype of two
                   Web pages. You will develop the prototype for the home page
                   and the contact page in the lab.




     Ver. 1.0                                                            Slide 27 of 30
Developing Web Applications Using ASP.NET

Demo: Creating a Web Application (Contd.)


                Solution:
                 • To solve this problem, you need to perform the following tasks:
                     1. Create a New Web Application
                         a.   Create a new file-system Web site.
                         b.   Design the Default.aspx Web page.
                         c.   Add and design a new Contact.aspx Web page.
                         d.   Implement default event handling.
                     2. Configure and Build a Web Application
                         a.   Build and run the Web application.
                         b.   Manage the default web.config file for the Web server.
                         c.   Add and manage the web.config file for the Web application.
                         d.   Enable debugging with Visual Studio 2005.




     Ver. 1.0                                                                               Slide 28 of 30
Developing Web Applications Using ASP.NET

Summary


                In this session, you learned that:
                    You can use Visual Studio 2005 to create any of the following
                    Web site types:
                     •   File-system Web sites
                     •   Local Internet Information Services (IIS) Web sites
                     •   Remote IIS Web sites
                     •   FTP sites
                 • Microsoft Visual Web Developer is the environment in
                   Microsoft Visual Studio 2005 that is used to create and work
                   with Microsoft ASP.NET Web applications.
                 • You can add existing items, such as Web pages, graphics, and
                   XML files, to Web applications using Microsoft Visual Web
                   Developer.
                 • Visual Web Developer offers you various ways to set the
                   properties of controls on the page.


     Ver. 1.0                                                                  Slide 29 of 30
Developing Web Applications Using ASP.NET

Summary (Contd.)


                  ASP.NET provides two models for managing the visual
                  elements and code:
                   • Single-file page model
                   • Code-behind page model
                • Many ASP.NET objects expose events. You can write code for
                  these events to control Web pages.
                • ASP.NET uses a flexible configuration management system
                  that keeps application configuration settings separate from
                  application code. It is based on a hierarchy of XML files.




     Ver. 1.0                                                        Slide 30 of 30

More Related Content

What's hot

Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web applicationRahul Bansal
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17Niit Care
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentationdimuthu22
 
Joe Staner Zend Con 2008
Joe Staner Zend Con 2008Joe Staner Zend Con 2008
Joe Staner Zend Con 2008ZendCon
 
Chapter6 web apps-tomcat
Chapter6 web apps-tomcatChapter6 web apps-tomcat
Chapter6 web apps-tomcatVenkat Gowda
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETPeter Gfader
 
The future of web development write once, run everywhere with angular js an...
The future of web development   write once, run everywhere with angular js an...The future of web development   write once, run everywhere with angular js an...
The future of web development write once, run everywhere with angular js an...Mark Leusink
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1Kumar S
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.netSHADAB ALI
 
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web PlatformWordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web PlatformGeorge Kanellopoulos
 
Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebGeorge Kanellopoulos
 
PHP konferencija - Microsoft
PHP konferencija - MicrosoftPHP konferencija - Microsoft
PHP konferencija - Microsoftnusmas
 

What's hot (20)

Developing an aspnet web application
Developing an aspnet web applicationDeveloping an aspnet web application
Developing an aspnet web application
 
12 asp.net session17
12 asp.net session1712 asp.net session17
12 asp.net session17
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
Joe Staner Zend Con 2008
Joe Staner Zend Con 2008Joe Staner Zend Con 2008
Joe Staner Zend Con 2008
 
Chapter6 web apps-tomcat
Chapter6 web apps-tomcatChapter6 web apps-tomcat
Chapter6 web apps-tomcat
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
Asp net
Asp netAsp net
Asp net
 
Asp.net basic
Asp.net basicAsp.net basic
Asp.net basic
 
Asp.net
Asp.netAsp.net
Asp.net
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
The future of web development write once, run everywhere with angular js an...
The future of web development   write once, run everywhere with angular js an...The future of web development   write once, run everywhere with angular js an...
The future of web development write once, run everywhere with angular js an...
 
ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1ASP.NET Tutorial - Presentation 1
ASP.NET Tutorial - Presentation 1
 
Asp.net
 Asp.net Asp.net
Asp.net
 
Introduction to asp.net
Introduction to asp.netIntroduction to asp.net
Introduction to asp.net
 
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web PlatformWordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
Wordcamp Thessaloniki 2011 Wordpress and Microsoft Web Platform
 
Php On Windows
Php On WindowsPhp On Windows
Php On Windows
 
Wordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The NextwebWordcamp Thessaloniki 2011 The Nextweb
Wordcamp Thessaloniki 2011 The Nextweb
 
PHP konferencija - Microsoft
PHP konferencija - MicrosoftPHP konferencija - Microsoft
PHP konferencija - Microsoft
 
ASP.NET Web form
ASP.NET Web formASP.NET Web form
ASP.NET Web form
 

Similar to 01 asp.net session01

01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Mani Chaubey
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01Vivek chan
 
09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13Niit Care
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NETRajkumarsoy
 
Asp interview Question and Answer
Asp interview Question and Answer Asp interview Question and Answer
Asp interview Question and Answer home
 
Single Page Apps
Single Page AppsSingle Page Apps
Single Page AppsGil Fink
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23Niit Care
 
Microsoft+PHP: Make Web Not War
Microsoft+PHP: Make Web Not WarMicrosoft+PHP: Make Web Not War
Microsoft+PHP: Make Web Not WarDave Bost
 
Php apache vs iis By Hafedh Yahmadi
Php apache vs iis  By Hafedh YahmadiPhp apache vs iis  By Hafedh Yahmadi
Php apache vs iis By Hafedh YahmadiTechdaysTunisia
 
Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015Bluegrass Digital
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!rommel_gagasa
 
Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8emmanuel_gagasa
 

Similar to 01 asp.net session01 (20)

01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
01 asp.net session01
01 asp.net session0101 asp.net session01
01 asp.net session01
 
A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net  A comprehensive software infrastructure of .Net
A comprehensive software infrastructure of .Net
 
Chapter 26
Chapter 26Chapter 26
Chapter 26
 
09 asp.net session13
09 asp.net session1309 asp.net session13
09 asp.net session13
 
Rutgers - Active Server Pages
Rutgers - Active Server PagesRutgers - Active Server Pages
Rutgers - Active Server Pages
 
Asp
AspAsp
Asp
 
Introduction to ASP.NET
Introduction to ASP.NETIntroduction to ASP.NET
Introduction to ASP.NET
 
Asp.netrole
Asp.netroleAsp.netrole
Asp.netrole
 
Asp.net Project
Asp.net Project Asp.net Project
Asp.net Project
 
Web development using asp.net
Web development using asp.netWeb development using asp.net
Web development using asp.net
 
Asp interview Question and Answer
Asp interview Question and Answer Asp interview Question and Answer
Asp interview Question and Answer
 
Single Page Apps
Single Page AppsSingle Page Apps
Single Page Apps
 
16 asp.net session23
16 asp.net session2316 asp.net session23
16 asp.net session23
 
Microsoft+PHP: Make Web Not War
Microsoft+PHP: Make Web Not WarMicrosoft+PHP: Make Web Not War
Microsoft+PHP: Make Web Not War
 
Php apache vs iis By Hafedh Yahmadi
Php apache vs iis  By Hafedh YahmadiPhp apache vs iis  By Hafedh Yahmadi
Php apache vs iis By Hafedh Yahmadi
 
Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015Best of Microsoft Dev Camp 2015
Best of Microsoft Dev Camp 2015
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
My cool new Slideshow!
My cool new Slideshow!My cool new Slideshow!
My cool new Slideshow!
 
Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8Aspnet1 1228804638645739 8
Aspnet1 1228804638645739 8
 

More from Niit Care (20)

Ajs 1 b
Ajs 1 bAjs 1 b
Ajs 1 b
 
Ajs 4 b
Ajs 4 bAjs 4 b
Ajs 4 b
 
Ajs 4 a
Ajs 4 aAjs 4 a
Ajs 4 a
 
Ajs 4 c
Ajs 4 cAjs 4 c
Ajs 4 c
 
Ajs 3 b
Ajs 3 bAjs 3 b
Ajs 3 b
 
Ajs 3 a
Ajs 3 aAjs 3 a
Ajs 3 a
 
Ajs 3 c
Ajs 3 cAjs 3 c
Ajs 3 c
 
Ajs 2 b
Ajs 2 bAjs 2 b
Ajs 2 b
 
Ajs 2 a
Ajs 2 aAjs 2 a
Ajs 2 a
 
Ajs 2 c
Ajs 2 cAjs 2 c
Ajs 2 c
 
Ajs 1 a
Ajs 1 aAjs 1 a
Ajs 1 a
 
Ajs 1 c
Ajs 1 cAjs 1 c
Ajs 1 c
 
Dacj 4 2-c
Dacj 4 2-cDacj 4 2-c
Dacj 4 2-c
 
Dacj 4 2-b
Dacj 4 2-bDacj 4 2-b
Dacj 4 2-b
 
Dacj 4 2-a
Dacj 4 2-aDacj 4 2-a
Dacj 4 2-a
 
Dacj 4 1-c
Dacj 4 1-cDacj 4 1-c
Dacj 4 1-c
 
Dacj 4 1-b
Dacj 4 1-bDacj 4 1-b
Dacj 4 1-b
 
Dacj 4 1-a
Dacj 4 1-aDacj 4 1-a
Dacj 4 1-a
 
Dacj 1-2 b
Dacj 1-2 bDacj 1-2 b
Dacj 1-2 b
 
Dacj 1-3 c
Dacj 1-3 cDacj 1-3 c
Dacj 1-3 c
 

Recently uploaded

Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 

Recently uploaded (20)

DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 

01 asp.net session01

  • 1. Developing Web Applications Using ASP.NET Rationale In today’s competitive business environment, the information should be accessible from anywhere, anytime. This can be done by creating presentable and informative Web applications. A Web application is an application delivered to users from a Web server over a network such as the World Wide Web or an intranet. Web applications enable you to share and access information over the Internet and corporate intranets. Content on the various pages in a Web application can be of two types: • Static: Consists only of HTML pages and does not respond dynamically to the actions performed by users. • Dynamic: Changes every time the user visits the page and/or responds dynamically to the actions performed by users. Ver. 1.0 Slide 1 of 30
  • 2. Developing Web Applications Using ASP.NET Rationale (Contd.) Dynamic Web pages provide several advantages over static Web pages. To create a dynamic Web page, you must include a script in the page. The script used to make a Web page dynamic can be of two types: • Client-side script • Server-side script A single page can also contain both client-side and server-side scripts. Ver. 1.0 Slide 2 of 30
  • 3. Developing Web Applications Using ASP.NET Rationale (Contd.) Client-side script: Is downloaded on the browser and runs on the client side Offers an easy way to enhance the functionality and user experience of the site Examples of client-side scripting technologies: Javascript, Jscript, and VBScript Server-side script: • Runs on the server that hosts the Web application • Offers a mechanism to access server-side resources, such as databases, that are not accessible on the client side • Examples of server-side scripting technologies: ASP, PHP, and JSP When server-side scripting is used, the server-side scripting must be supported by the hosting server. Ver. 1.0 Slide 3 of 30
  • 4. Developing Web Applications Using ASP.NET Rationale (Contd.) What is ASP.NET? ASP.NET is a Web application framework marketed by Microsoft that can be used to build dynamic Web sites, Web applications, and XML Web services. It is part of Microsoft's .NET platform and is the successor to Microsoft's Active Server Pages (ASP) technology. Applications developed using ASP.NET must be hosted on an Internet Information Services (IIS) server. Ver. 1.0 Slide 4 of 30
  • 5. Developing Web Applications Using ASP.NET Rationale (Contd.) The following figure describes how an IIS server processes the request for an ASP.NET file: Ver. 1.0 Slide 5 of 30
  • 6. Developing Web Applications Using ASP.NET Rationale (Contd.) ASP.NET provides the following advantages: Enables you to access information from data sources, such as back-end databases and text files that are stored on a Web server. Provides enriched tool support in the form of Visual Studio .NET integrated development environment (VS .NET IDE). Enables you to develop your application in any .NET language. Enables you to build user interfaces that separate application logic from presentation content. Enables you to manage Web applications by storing the configuration information in an XML file. Helps improve developer productivity and provides facilities for improving the performance, reliability, and scalability of Web applications. Ver. 1.0 Slide 6 of 30
  • 7. Developing Web Applications Using ASP.NET Objectives In this session, you will learn to: Describe the types of Web sites that you can create with Visual Studio 2005 Describe the concept of a default event handler for an object Explain how the machine.config and web.config files control the settings for a Web application Create a new Web application Configure and build a Web application Ver. 1.0 Slide 7 of 30
  • 8. Developing Web Applications Using ASP.NET Web Site Types • You can use Visual Studio 2005 to create the following Web site types: File-system Web sites Local Internet Information Services (IIS) Web sites Remote IIS Web sites FTP sites Ver. 1.0 Slide 8 of 30
  • 9. Developing Web Applications Using ASP.NET Web Site Types (Contd.) File-System Web sites: The ASP.NET Development Server acts as a Web server. Files are stored in any folder on the local computer’s file system or in a shared network folder. Advantages: The site can be accessed only from the local computer, reducing security vulnerabilities. You do not require IIS to be able to create and develop File-System Web sites. You do not need administrative rights to create or debug local Web sites. If the computer is configured to allow remote desktop connections, multiple users can create and debug local sites at the same time. Ver. 1.0 Slide 9 of 30
  • 10. Developing Web Applications Using ASP.NET Web Site Types (Contd.) • Disadvantages: Web site cannot be accessed from a remote computer. You can not test IIS features, such as HTTP based authentication, application pooling, and ISAPI filters. Ver. 1.0 Slide 10 of 30
  • 11. Developing Web Applications Using ASP.NET Web Site Types (Contd.) Local IIS Web site: An IIS server installed on the local computer acts as a Web server. The pages and folders for the site are stored in a folder under the default IIS folder for Web sites (Inetpubwwwroot). Web site can be browsed by using localhost as a server name. Advantages: • The site is accessible from other computers. • You can test IIS features, such as HTTP-based authentication, application pooling, and ISAPI filters. Disadvantages: You must have administrative rights to create or debug IIS Web sites. Only one user can debug IIS at any one time. Local IIS Web sites have remote access enabled by default. Ver. 1.0 Slide 11 of 30
  • 12. Developing Web Applications Using ASP.NET Web Site Types (Contd.) Remote IIS Web site: An IIS server running on a remote computer that is configured with FrontPage Server Extensions acts as a Web server. The pages and folders for the site are stored in the default IIS folder on the remote computer. Web site can be browsed by using the server name of the remote site. Advantages: • Web site can be tested on the server where it will actually be deployed. • Multiple developers can work against the same site at the same time. Disadvantages: Configuration for debugging can be complex. Only one developer can debug the application at any one time, all other requests are suspended while the developer is debugging the Web site. Ver. 1.0 Slide 12 of 30
  • 13. Developing Web Applications Using ASP.NET Web Site Types (Contd.) FTP site: The site exists on a remote computer that has been configured as an FTP server. You must have read/write privileges on the remote server to create and edit pages on that server. The server computer must have a browse location to enable a user to see the Web pages from an FTP site in a browser. Advantages: • You can test the Web site on the server where it will actually be deployed. Disadvantages: You do not have local copies of the files unless you copy them yourself. Ver. 1.0 Slide 13 of 30
  • 14. Developing Web Applications Using ASP.NET A Tour of Visual Web Developer The most commonly used windows and tools available in Visual Web Developer are: Toolbars Solution Explorer Document windows Properties windows View tabs Toolbox Server Explorer Ver. 1.0 Slide 14 of 30
  • 15. Developing Web Applications Using ASP.NET A Tour of Visual Web Developer (Contd.) Document Window Solution Explorer Toolbars Toolbox Properties Window View Tabs Server Explorer Ver. 1.0 Slide 15 of 30
  • 16. Developing Web Applications Using ASP.NET ASP.NET Web Page Code Model • A Microsoft ASP.NET Web page consists of two parts: Visual elements Programming logic for the page • ASP.NET provides two models for managing the visual elements and code: Single-file page model Code-behind page model Ver. 1.0 Slide 16 of 30
  • 17. Developing Web Applications Using ASP.NET ASP.NET Web Page Code Model (Contd.) • The Single-File Page Model: • The page’s HTML markup and its programming code are in the same physical .aspx (extension) file. • The programming code is contained in a <script> block that specifies the attribute runat=“server”. • At run time, the compiler converts a single-file page into a class that derives from the System.Web.UI.Page. Ver. 1.0 Slide 17 of 30
  • 18. Developing Web Applications Using ASP.NET ASP.NET Web Page Code Model (Contd.) • Advantages of the single-file model include the following: In pages without a lot of code, keeping the programming code and the HTML markup in a single file proves to be very convenient while studying the file. Pages written by using the single-file model are slightly easier to deploy or to send to another programmer because there is only one file. A single-file page is easier to rename because there is no dependency between files. Managing files in a source code control system is slightly easier because the page is self-contained in a single file. Ver. 1.0 Slide 18 of 30
  • 19. Developing Web Applications Using ASP.NET ASP.NET Web Page Code Model (Contd.) • The Code-Behind Page Model: HTML markup are kept in one file and the programming code in another file. There are two differences in the .aspx page between the single-file and the code-behind models: • In the code-behind model, there is no <script> block with the runat="server" attribute. • In the code-behind model, the @Page directive contains attributes that reference an external file and a class. • The code file contains a partial class, which indicates that the class contains only some of the total code that makes up the full class for the page. • The partial class inherits from a base Page class (either System.Web.UI.Page or a class derived from System.Web.UI.Page). Ver. 1.0 Slide 19 of 30
  • 20. Developing Web Applications Using ASP.NET ASP.NET Web Page Code Model (Contd.) • The Code-Behind Page Model: (Contd.) • The .aspx file contains an Inherits attribute that points to the code-behind partial class. • When the page is compiled, ASP.NET creates a new partial class for the .aspx file. This class is a peer of the code-behind partial class file and contains the declarations for the page’s controls. • Finally, ASP.NET generates a class that inherits from the partial class created from the .aspx file and the code-behind partial class. • The generated class is compiled into an assembly that runs in order to render output to the browser. Ver. 1.0 Slide 20 of 30
  • 21. Developing Web Applications Using ASP.NET ASP.NET Web Page Code Model (Contd.) • Advantages of the code-behind model include the following: Code-behind pages offer a clean separation of the HTML markup (user interface) and code. Code is not exposed to graphic designers or others who are working only with the page HTML markup. Ver. 1.0 Slide 21 of 30
  • 22. Developing Web Applications Using ASP.NET Default Event Handling in Web Applications • The ASP.NET 2.0 Framework provides many different objects (such as page, buttons). • These objects enable quick and easy development of Web applications. • Many objects expose one or more events. • When an object exposes multiple events, one of the events is designated as the default event. • To create the event handler for the default event, you can simply double-click on the object in the Visual Studio 2005 IDE. • This will create an empty event procedure for the default event. Ver. 1.0 Slide 22 of 30
  • 23. Developing Web Applications Using ASP.NET Web Configuration Files Web application settings are contained in a hierarchy of XML based configuration files. These configuration files contain settings for Microsoft .NET Framework applications, including ASP.NET Web applications. ASP.NET allows you to easily edit the configuration data before, or after applications are deployed on the server. The files in the configuration hierarchy allow you to make configuration settings at different levels. Ver. 1.0 Slide 23 of 30
  • 24. Developing Web Applications Using ASP.NET Web Configuration Files (Contd.) The levels, the corresponding configuration files, and their descriptions are listed in the following table: Level File Name Description Server Settings Machine.config Present at the root of the configuration hierarchy; It defines global configuration settings for all .NET Framework applications. Root Web Settings Web.config Present in the same directory as machine.config; It defines configuration settings for all ASP.NET applications. Web site settings Web.config Present in the root directory of each IIS Web site; (optional) contains settings that are specific to the Web site. Application root Web.config Present in the root directory of each application; settings (optional) contains settings that are specific to the application. Application Web.config Present in a subfolder of the application root; subfolder contains settings for specific section of a Web (optional) application. Ver. 1.0 Slide 24 of 30
  • 25. Developing Web Applications Using ASP.NET <customError> Element • The <customErrors> element provides information about how custom error messages are handled for a Microsoft ASP.NET application. • It can be defined in the global web.config file for the host computer and in the web.config file for the application. • The customErrors element has the following syntax: <customErrors defaultRedirect="url" mode="On|Off|RemoteOnly"> <error statusCode="statuscode" redirect="url"/> </customErrors> Ver. 1.0 Slide 25 of 30
  • 26. Developing Web Applications Using ASP.NET <compilation> Element • The <compilation> element can be defined in the system.web section of a configuration file. • It enables you to specify compilation settings for a Web application. • Example of a simple configuration for the compilation settings of an application: <configuration> <system.web> <compilation defaultLanguage="VB" debug="true" numRecompilesBeforeAppRestart="15"> </compilation> </system.web> </configuration> Ver. 1.0 Slide 26 of 30
  • 27. Developing Web Applications Using ASP.NET Demo: Creating a Web Application Problem Statement: You are a developer in the Adventure Works organization, a fictitious bicycle manufacturer. You have been asked to assist in creating a new Business-to-Consumer (B2C) Web application and a related Business-to-Employee (B2E) extranet portal. Decisions on the design of the application have already been made. You have been asked to carry out a number of specific tasks to implement various elements of this design. As part of the first phase of the B2C development, you have been asked to create a new Web application and to build a prototype of two Web pages. You will develop the prototype for the home page and the contact page in the lab. Ver. 1.0 Slide 27 of 30
  • 28. Developing Web Applications Using ASP.NET Demo: Creating a Web Application (Contd.) Solution: • To solve this problem, you need to perform the following tasks: 1. Create a New Web Application a. Create a new file-system Web site. b. Design the Default.aspx Web page. c. Add and design a new Contact.aspx Web page. d. Implement default event handling. 2. Configure and Build a Web Application a. Build and run the Web application. b. Manage the default web.config file for the Web server. c. Add and manage the web.config file for the Web application. d. Enable debugging with Visual Studio 2005. Ver. 1.0 Slide 28 of 30
  • 29. Developing Web Applications Using ASP.NET Summary In this session, you learned that: You can use Visual Studio 2005 to create any of the following Web site types: • File-system Web sites • Local Internet Information Services (IIS) Web sites • Remote IIS Web sites • FTP sites • Microsoft Visual Web Developer is the environment in Microsoft Visual Studio 2005 that is used to create and work with Microsoft ASP.NET Web applications. • You can add existing items, such as Web pages, graphics, and XML files, to Web applications using Microsoft Visual Web Developer. • Visual Web Developer offers you various ways to set the properties of controls on the page. Ver. 1.0 Slide 29 of 30
  • 30. Developing Web Applications Using ASP.NET Summary (Contd.) ASP.NET provides two models for managing the visual elements and code: • Single-file page model • Code-behind page model • Many ASP.NET objects expose events. You can write code for these events to control Web pages. • ASP.NET uses a flexible configuration management system that keeps application configuration settings separate from application code. It is based on a hierarchy of XML files. Ver. 1.0 Slide 30 of 30

Editor's Notes

  1. Initiate the session by explaining the session objectives. Tell the students that the success of a software solution depends largely on how well its various components have been designed. An effort should be made to ensure that the components of the existing software solution can be reused. This can be done by using frameworks and patterns. You need to elaborate the concept of applying patterns and frameworks by using the case study of BlueSeas Inc. This will help students to relate their programming skills with the actual practices followed in the software industry.
  2. Initiate the session by explaining the session objectives. Tell the students that the success of a software solution depends largely on how well its various components have been designed. An effort should be made to ensure that the components of the existing software solution can be reused. This can be done by using frameworks and patterns. You need to elaborate the concept of applying patterns and frameworks by using the case study of BlueSeas Inc. This will help students to relate their programming skills with the actual practices followed in the software industry.
  3. Initiate the session by explaining the session objectives. Tell the students that the success of a software solution depends largely on how well its various components have been designed. An effort should be made to ensure that the components of the existing software solution can be reused. This can be done by using frameworks and patterns. You need to elaborate the concept of applying patterns and frameworks by using the case study of BlueSeas Inc. This will help students to relate their programming skills with the actual practices followed in the software industry.
  4. Initiate the session by explaining the session objectives. Tell the students that the success of a software solution depends largely on how well its various components have been designed. An effort should be made to ensure that the components of the existing software solution can be reused. This can be done by using frameworks and patterns. You need to elaborate the concept of applying patterns and frameworks by using the case study of BlueSeas Inc. This will help students to relate their programming skills with the actual practices followed in the software industry.
  5. Initiate the session by explaining the session objectives. Tell the students that the success of a software solution depends largely on how well its various components have been designed. An effort should be made to ensure that the components of the existing software solution can be reused. This can be done by using frameworks and patterns. You need to elaborate the concept of applying patterns and frameworks by using the case study of BlueSeas Inc. This will help students to relate their programming skills with the actual practices followed in the software industry.
  6. Initiate the session by explaining the session objectives. Tell the students that the success of a software solution depends largely on how well its various components have been designed. An effort should be made to ensure that the components of the existing software solution can be reused. This can be done by using frameworks and patterns. You need to elaborate the concept of applying patterns and frameworks by using the case study of BlueSeas Inc. This will help students to relate their programming skills with the actual practices followed in the software industry.