Module 7: Building Web Applications

Size: px
Start display at page:

Download "Module 7: Building Web Applications"

Transcription

1 Module 7: Building Web Applications Contents Overview 1 Introduction to ASP.NET 2 Creating Web Form Applications 16 Demonstration: Creating Web Forms 30 Lab 7.1: Creating the Customer Logon Web Forms 31 Building Web Services 42 Demonstration: Creating a Web Service 50 Using Web Services 51 Demonstration: Using a Web Service 57 Multimedia: How Web Services Work 58 Lab 7.2: Creating and Using the CustomerService Web Service 60 Review 71

2 Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, addresses, logos, people, places and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property Microsoft Corporation. All rights reserved. Microsoft, MS-DOS, Windows, Windows NT, ActiveX, BizTalk, FrontPage, IntelliSense, JScript, Microsoft Press, Outlook, PowerPoint, Visio, Visual Basic, Visual C++, Visual C#, Visual InterDev, Visual J#, Visual SourceSafe, Visual Studio, and Windows Media are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners.

3 Module 7: Building Web Applications iii Instructor Notes Presentation: 120 Minutes Labs: 105 Minutes This module provides students with the knowledge needed to create Web-based applications. In the first lab, students will create several Web Forms for logging on or registering as a customer of the Cargo system. In the second lab, students will create a Web Service that provides information about customers and allows the addition of new customers to the system. The labs use predefined classes that replicate data storage and retrieval. After completing this module, students will be able to: Explain and take advantage of the benefits of ASP.NET and its various libraries in application development. Create Web Form applications. Use HTML server controls and Web server controls. Create Web Services. Materials and Preparation Use Web Services from a browser or from another client application. This lesson provides the materials and preparation tasks that you need to teach this module. Required Materials To teach this module, you need the following materials: Microsoft PowerPoint file 2373B_07.ppt Module 7, Building Web Applications Lab 7.1, Creating the Customer LogOn Web Forms Lab 7.2, Creating and Using the CustomerService Web Service Multimedia presentation, How Web Services Work, file 2373_How Web Services Work.htm on the Student Materials compact disc Preparation Tasks To prepare for this module, you should: Read all of the materials for this module. Read the instructor notes and the margin notes for the module. Practice the demonstrations. Complete the labs.

4 iv Module 7: Building Web Applications Demonstrations This section provides demonstration procedures that will not fit in the margin notes or are not appropriate for the student notes. These demonstrations show the creation of simple Web Forms and simple Web Services. If students have previous experience with ASP.NET Beta 1, consider using validation controls in the Web Forms demonstration, and analyze the client-side proxy files generated in the Using a Web Service demonstration. Creating Web Forms To create the application 1. Open Microsoft Visual Studio.NET. 2. Create a new ASP.NET Web Application project called LogonDemo in the following Web directory: 3. Examine the Web.config file, and locate the authentication and sessionstate sections, pointing out the default values. To create the logon page 1. Open the WebForm1.aspx file in the design window. 2. In the Properties window, change the Document.pageLayout property to FlowLayout. 3. Click the top left corner of the Web Form to create a heading, and in the Block Format list on the Formatting toolbar, click Heading Add the text Welcome to the Logon Page to the page. 5. Using the Web Forms toolbox, add the following controls to the page, and then set their properties as shown in the table. Control type Property Value TextBox (ID) txtfullname TextBox (ID) txt TextBox (ID) txtpassword TextMode Password TextBox (ID) txtconfirm TextMode Password Button (ID) btnsubmit Text Submit 6. To describe the purpose of each TextBox, add Normal style text above each box, as shown in the following table. TextBox Describing text txtfullname txt txtpassword txtconfirm Please enter your full name: Please enter your address: Please enter a password: Please confirm the password:

5 Module 7: Building Web Applications v 7. Reposition the controls on your page as shown in the following illustration: 8. Examine the WebForm1.aspx file in the HTML view of the HTML Designer, and describe Page directive at the top of the page and the HTML syntax within the page, including the control declarations. 9. In the design window, double-click btnsubmit to display the Code Editor, and then explain the code in this module. 10. Add the following code to the btnsubmit_click event handler, and then explain the uses of the session variable and Response object. Session("FullName") = txtfullname.text Response.Redirect("Welcome.aspx") To create the welcome page 1. Add another Web Form named Welcome.aspx to the project, add a single Label control to it, and then set the (ID) property of the control to lblwelcome. 2. Locate the Page_Load event handler in the Welcome.aspx.vb code module, and add the following code: lblwelcome.text = "Welcome " & Session("FullName") To test the application 1. Run the application. 2. Type values in the text boxes, and then click Submit, viewing the results. 3. Quit the application. 4. Quit Visual Studio.NET.

6 vi Module 7: Building Web Applications Creating a Web Service To create the application 1. Open Visual Studio.NET. 2. Create a new ASP.NET Web Service project in the following directory: 3. Using the Solution Explorer, delete Service1.asmx from the project. Add a new Web Service item named QueryUsers.asmx. To create the GetUserName method 1. Open the QueryUsers.asmx.vb code module and add the following method: <WebMethod( )> Public Function GetUserName( _ ByVal As String) As String Return & ": Corresponding name on database" End Function 2. Build the project, but do not run it. To test the Web Service 1. Right-click QueryUsers.asmx in Solution Explorer, and then click View in Browser. 2. Click the GetUserName hyperlink and examine the HTML description page. Enter an address in the input field for the GetUserName method and click Invoke and view the Extensible Markup Language (XML) results. Close this window. 3. Return to the first HTML description page, and click the Service Description link to view the Web Services Description Language (WSDL) document. Describe the document, briefly pointing out the basic sections of the document before closing the window. To add descriptions to the Web Service and methods 1. In the QueryUsers.asmx.vb code module, modify the class definition to read as follows: <WebService(Namespace := " _ Description:="This service deals with user information.")> Public Class QueryUsers 2. Locate the GetUserName method and modify the WebMethod attribute to read as follows: <WebMethod(Description:="Looks up a name based on the .")> 3. To display the new HTML description page, rebuild the project and view QueryUsers.asmx in the browser as before, pointing out the new descriptions. 4. Close Visual Studio.NET.

7 Module 7: Building Web Applications vii Delivery Tip This demonstration uses the Web Service from the previous demonstration. If you have not created the web service, you must open Services.sln in install folder\democode\mod07\ Services\Solution and build the project. Then you can substitute Services/Solution for Services/Starter/Services in the folder paths in this demonstration. Delivery Tip In step 6, do not go into too much detail regarding the proxy class file. Students can explore this individually if they want to. Using a Web Service To test a Web Service with Internet Explorer 1. Open Microsoft Internet Explorer. 2. Type the following Uniform Resource Locator (URL) into the Address bar of Internet Explorer to demonstrate how browsers can submit a call which includes parameters to the Web Service methods: Starter/Services/QueryUsers.asmx/GetUserName? =Jeff 3. Close Internet Explorer. To use a Web Service from a rich client 1. Open the RichClient.sln solution in the install folder\democode\ Mod07\RichClient\Starter folder. 2. View the form design for frmuserdetails.vb. The purpose of the form is to retrieve user details based on an address by means of the Web Service. 3. On the Project menu, click Add Web Reference, and then type in the following URL: Starter/Services/QueryUsers.asmx 4. Click the Go to button, and then click Add Reference. 5. Locate the localhost Web reference in Solution Explorer, and rename it UserServices. 6. In Solution Explorer, click Show All Files and view the Reference.vb file that acts as the proxy class for the client application. Explain that this file allows client code to be written as if it were normal Visual Basic.NET code, allowing the use of Microsoft IntelliSense and early binding. 7. Create the btnsubmit_click event handler in frmuserdetails.vb, and add the following code, explaining the purpose of each line. Dim qu As New UserServices.QueryUsers( ) MessageBox.Show(qu.GetUserName(txt .Text), _ "Result from the Service") qu = Nothing To test the client application 1. Run the project. 2. Click Submit to view the results of the call to the Web Service. 3. Exit the form and the Visual Studio.NET integrated development environment (IDE).

8 viii Module 7: Building Web Applications Multimedia Presentation This section provides multimedia presentation procedures that do not fit in the margin notes or are not appropriate for the student notes. How Web Services Work To show the multimedia presentation To show this presentation, double-click the animation icon on the slide for the Multimedia: How Web Services Work topic. Module Strategy Use the following strategy to present this module: Introduction to ASP.NET This lesson introduces ASP.NET and shows some of the benefits over Active Server Pages (ASP). Emphasize that this is primarily an overview lesson; most of these topics are addressed in more detail throughout the module. For more in-depth information about ASP.NET, refer students to Course 2063A, Introduction to ASP.NET. Creating Web Form Applications This lesson shows how to create Web Forms applications. Students examine the structure of a Web Form, including some of the important directives that are used within the page definition. Compare HTML controls to Web server controls, and highlight some individual controls for discussion, such as the validation controls and the AdRotator control. Finally, introduce students to event handling for ASP.NET server controls. Building Web Services This lesson describes the open standards and protocols that enable Web Services, in addition to how to create Web Services and their methods by using the WebMethod attribute. The student notes show how to include method and Web Service descriptions within these attributes. Point these lessons out to students. Use the instructor-led demonstration to show students how to create a simple Web Service and its discovery document. Using Web Services In this lesson, you examine how to use a Web Service from a client, including the process of discovery and the exploration of service descriptions. Explain to students how they can access this information from a browser and from a rich client such as Visual Basic.NET. Use the demonstration and animation at the end of the module to give students examples of possible scenarios for Web Services, and elicit suggestions for other Web Services from the students.

9 Module 7: Building Web Applications 1 Overview Topic Objective To provide an overview of the module topics and objectives. Lead-in In this module, you will learn about building Web applications with Visual Basic.NET. Introduction to ASP.NET Creating Web Form Applications Building Web Services Using Web Services *****************************ILLEGAL FOR NON-TRAINER USE****************************** Using Microsoft Visual Basic.NET and ASP.NET, you can create a new generation of dynamic, powerful Web applications. Delivery Tip Developers who are familiar with the ASP model will find the transition to ASP.NET to be fairly easy. After completing this module, you will be able to: Explain and take advantage of the benefits of ASP.NET and its various libraries in application development. Create Web Form applications. Use HTML server controls and Web server controls. Create Web Services. Use Web Services from a browser or from another client application.

10 2 Module 7: Building Web Applications Introduction to ASP.NET Topic Objective To provide an overview of the topics covered in this lesson. Lead-in ASP.NET introduces many improvements upon traditional approaches to Web development. Overview of ASP.NET Using Response and Request Objects Maintaining Client-Side State Maintaining Server-Side State Managing an ASP.NET Application Overview of ASP.NET Security Using Global Events with Global.asax *****************************ILLEGAL FOR NON-TRAINER USE****************************** Delivery Tip This lesson provides an overview of ASP.NET and its benefits without going into much detail about any one topic. Most items are covered in more depth later in the module. ASP.NET introduces many improvements upon traditional approaches to Web development. Its extensive framework of classes enables you to rapidly create powerful, scalable, manageable, and secure Internet applications. After you complete this lesson, you will be able to: Describe the advantages that ASP.NET provides over its predecessor, Active Server Pages (ASP). Use two important ASP.NET objects: Request and Response. Use the various client-side and server-side state facilities that are available in ASP.NET applications. Explain basic concepts in managing and securing ASP.NET applications. Use the Global.asax application file for global events.

11 Module 7: Building Web Applications 3 Overview of ASP.NET Topic Objective To discuss the key features provided by ASP.NET. Lead-in ASP.NET introduces many significant enhancements to ASP. Code behind development Intuitive approach to development similar to Windows Forms Code can be compiled using any.net-compatible language Significant performance improvement ASP.NET pages run side-by-side with ASP pages Files with the.aspx extension run side-by-side with current ASP applications on IIS Automatic support for multiple browsers Rich DHTML, HTML 3.2, and small devices ASP.NET namespaces provide rich functionality Built-in support for Web Services *****************************ILLEGAL FOR NON-TRAINER USE****************************** For several years, Web developers have used ASP to produce Internet applications containing dynamic content. ASP.NET is the evolution of this technology, and it provides many benefits to Web developers: Code-behind support ASP.NET uses an event-driven programming model familiar to Visual Basic and ASP developers. Web Forms use the drag-and-drop style of page creation. You can modify code behind the controls on Web Forms in the same way that you do on Visual Basic forms. This code resides in a separate file to separate the content from the code. Code can be compiled from any Microsoft.NET-compatible language You can create your ASP.NET applications by using any of the.net compatible languages, including Visual Basic.NET, C#, and Microsoft JScript. While ASP contains scripts that are interpreted when you execute a page, ASP.NET code is compiled rather than interpreted. This allows early binding, strong typing, and just-in-time (JIT) compilation to native code. These factors greatly improve the performance of ASP.NET applications, particularly when you have an increased number of clients. ASP.NET pages run side-by-side with ASP pages ASP.NET uses the.aspx file extension to allow ASP.NET pages to run sideby-side with existing ASP pages on Internet Information Services (IIS). The ASP.NET runtime will only process files with.aspx extensions;.asp files will be processed with the original ASP engine. You can easily migrate existing.asp files to.aspx files without making many changes to the code.

12 4 Module 7: Building Web Applications Automatic support for multiple browsers ASP.NET applications have the ability to render information differently to suit the capabilities of different browsers. You can create your application in the same way for both a simple browser that only supports HTML 3.2 and for an enhanced browser that supports dynamic HTML (DHTML), such as Microsoft Internet Explorer 4.0. You can even use Visual Basic.NET to create Web applications that will run on small devices such as Handheld PCs because of the ability of the ASP.NET Web server controls to render themselves appropriately for each client browser. ASP.NET namespaces provide rich functionality The ASP.NET framework provides several namespaces that allow you to use powerful built-in features, such as the ability to communicate between browser and server, to increase application performance by caching information, and to fully secure a Web site. The framework provides Web Service capabilities to allow access to your system services, and provides many predefined controls for use on Web Forms. Built-in support for Web Services ASP.NET includes built-in support for Web Services, enabling developers to build loosely coupled applications that use Simple Object Access Protocol (SOAP) for application-to-application communication.

13 Module 7: Building Web Applications 5 Using Response and Request Objects Topic Objective To explain how to use the Response and Request objects. Lead-in The Response and Request objects provide the ability to communicate between the server and the browser. The System.Web namespace provides common Web functionality Requesting information from the client Request object Dim Dim strvalue As As String String = Request.Form("txtInput") Sending information to the client Response object Response.Write("<H2>The date date is: is: " & Now.Date & "</H2>") *****************************ILLEGAL FOR NON-TRAINER USE****************************** You can use the System.Web namespace to access many of the classes that provide the base functionality of ASP.NET applications. Many of these classes are similar to those used by developers in ASP applications and have been enhanced in ASP.NET. You can use the Response and Request objects, provided by the System.Web namespace, to communicate between the client browser and the server computer. Both of these objects provide new properties and methods for their equivalent objects in ASP. Requesting Information from the Client Browser You can request information such as query string, cookie, and form values from a client browser by using the HttpRequest class. An instance of this class is available by means of the Request property of the current Web Form. The following example shows how to request the value currently stored in a text box on a Web Form: Dim strvalue As String = Request.Form("txtInput") Sending Information to the Client Browser You can send information such as cookie values, HTML output, and browser redirection to the client browser by using the HttpResponse class. An instance of this class is available by means of the Response property of the current Web Form. The following example uses the Response object to display the current date: Response.Write("<H2>The date is: " & Now.Date & "</H2>")

14 6 Module 7: Building Web Applications Maintaining Client-Side State Topic Objective To explain how to use the available client-side state facilities in the ASP.NET framework. Lead-in You can use several approaches to maintain client-side state in ASP.NET applications. Maintaining control state across multiple requests Set EnableViewState property of control Use the StateBag class to store extra data ViewState("TempData") ViewState("TempData") = Send data to client as hidden string <input <input type="hidden" type="hidden" name=" VIEWSTATE" name=" VIEWSTATE" value="do NnU=" value="do NnU=" /> /> Using cookies for enhanced client-side state Response.Cookies("User_FullName").Value Response.Cookies("User_FullName").Value = strfullname strfullname strfullname strfullname = Request.Cookies("User_FullName").Value Request.Cookies("User_FullName").Value *****************************ILLEGAL FOR NON-TRAINER USE****************************** Web pages are generally regarded as stateless devices, meaning that they do not remember any values between being displayed, destroyed, and displayed again. However, in ASP.NET you can choose to maintain state for a Web page when you need to. You can do this by using view state at the page and control level. Maintaining Control State Web pages are re-created each time a client browser makes a request. Normally this means that all control state is reset with each request. However, you can save the state of a page and its content by using the view state property or the StateBag class. Both approaches use a hidden variable to store the information as part of the page that is sent to the browser. This information is then retrieved when the page is posted back to the server. Using View State The System.Web.UI.Control class implements a property named EnableViewState. You can set this property to achieve the following functionality: True If you set this property to True (the default), any control that inherits from this base class will maintain its view state and the view state of any constituent control, through multiple requests by a single client browser. False If a page does not post back to itself, you can set this property to False to increase performance by reducing the size of the page.

15 Module 7: Building Web Applications 7 Using State Bags You can use the StateBag class to maintain additional cross-request information. An instance called ViewState is accessible from each Web Form and allows you to store and retrieve extra information. The following example shows how to create a stateful property (a value that is maintained for multiple requests) called TempData and assign a value of 25. You can then retrieve this data from the StateBag instance and display it to the user by using the Response.Write method. ViewState("TempData") = 25 Response.Write(ViewState("TempData")) When the page is sent to the browser, a hidden variable is included, as shown in the following example: <input type="hidden" name=" VIEWSTATE" value="do NnU=" /> Using Cookies for Enhanced Client-Side State A cookie is a simple mechanism for storing information in a text file on a client computer. You can use the HttpCookie class to provide a type-safe way to access cookies and manipulate cookie properties such as Expires, Value, and Name. Read and write access to a cookie is provided by means of the Cookies collection property for the Request and Response objects, respectively. The following example stores a cookie with an expiration date on the client computer before reading the data back from the client: Response.Cookies("User_FullName").Value = strfullname Response.Cookies("User_FullName").Expires = _ Now.AddMonths(1)... If Not (Request.Cookies("User_FullName") Is Nothing) Then strfullname = Request.Cookies("User_FullName").Value End If

16 8 Module 7: Building Web Applications Maintaining Server-Side State Topic Objective To explain how to use the server-side state facilities available in the ASP.NET framework. Lead-in You can use several approaches to maintain server-side state in ASP.NET applications. Application object maintains application-level state Data for use by all users Application("App_StartTime") = Now Now Session object maintains session-level state Data for use by a single client browser Data recoverable by means of Windows Service or SQL Server database Session("Session_StartTime") = Now Now *****************************ILLEGAL FOR NON-TRAINER USE****************************** Some parts of your Web application may need to maintain cross-request state. For example, a shopping cart application may need to maintain information about a customer order through multiple visits to a page before the items are purchased. You can maintain state at either the application or session level. Delivery Tip Ensure that students understand the concepts of a Web farm and Web garden. Maintaining Application State You can use the HttpApplicationState class to store application-level information. You can use the intrinsic Application object during a Web request to share global data across the application. The default Item property of this object stores and retrieves a collection of objects, allowing anything from a string to a user-defined object to be maintained for the lifespan of the application. Application state is not shared across a Web farm or a Web garden. Note A Web farm is an application that is hosted across multiple computers. A Web garden is an application that is hosted on a single computer with multiple processors. Example The following example shows how to store the start time of the application and then displays the information at a later stage: Application("App_StartTime") = Now... Response.Write("Application Started: " & _ Application("App_StartTime"))

17 Module 7: Building Web Applications 9 About Application State Note the following information when using application state: The Contents collection property of the HttpApplicationState class provides backward compatibility with ASP. Multiple-user sessions within an ASP.NET application can potentially modify data, resulting in values that differ from those expected by a single user. The following example shows how you can use the Lock and Unlock methods to avoid this problem: Application.Lock Application("aCounter") = Application("aCounter") + 1 Application.Unlock Maintaining Session State The server maintains session state information for each browser client as a logical session until the session ends. The session ends when a time out occurs or when the user moves away from the ASP.NET application. Example You can use the intrinsic Session object to access this state information. The following example shows how to use session state to store a start time that can be retrieved at a later stage during the user s session: Session("Session_StartTime") = Now... Response.Write("Session started: " & _ Session("Session_StartTime")) About Session State Note the following facts and guidelines when using session state in ASP.NET applications: ASP.NET session state maintains backward compatibility with ASP session state. You can store session state in three ways: As part of the application process As an external Microsoft Windows Service, allowing for ASP.NET application restarts and data sharing across multiple processors (Web gardens) As data in a Microsoft SQL Server database, allowing the session data to be available across multiple computers (Web farms) While ASP applications require a cookie to store a unique SessionID value that links a user to a particular session, ASP.NET does not require cookies in order to store session state. In the Web.config file, you can choose the option to automatically encode the SessionID value in the Uniform Resource Locator (URL). This means that all browsers can use session information even if the user has disabled cookie support. Note For more information about configuring session state, search for web.config in the Microsoft Visual Studio.NET documentation.

18 10 Module 7: Building Web Applications Managing an ASP.NET Application Topic Objective To discuss the way ASP.NET applications are managed. Lead-in Managing ASP.NET applications is straightforward. Configuring ASP.NET applications XML configuration file Web.config Human-readable and writeable Stored with the application Deploying ASP.NET applications XCOPY the pages, components, and configuration No registration required Updating ASP.NET applications Copy new files over old files No update utility, restart, or reboot required Live update keeps applications running *****************************ILLEGAL FOR NON-TRAINER USE****************************** ASP.NET applications are simple to configure, deploy, and maintain. Delivery Tip Deployment is covered in more depth in Module 10, Deploying Applications, in Course 2373B, Programming with Microsoft Visual Basic.NET. Configuring ASP.NET Applications An ASP.NET application can contain web.config configuration files. These files store information about the application, including application settings, custom browser capabilities, custom errors, security, and more. The document format is Extensible Markup Language (XML), so you can use any text or XML editor to read or edit the file. You deploy the configuration file to the same virtual directory as the application it configures. The file also configures any applications in subdirectories of that virtual directory, unless those applications have their own configuration file. Note For more information about configuring ASP.NET applications, search for ASP.NET configuration in the Visual Studio.NET documentation.

19 Module 7: Building Web Applications 11 Deploying ASP.NET Applications You deploy an ASP.NET application by copying the required files to a virtual directory on an IIS computer. No component registration is required because the components contain their own self-describing metadata. This also solves registry problems previously associated with deploying components. Note For more information about deployment of Visual Basic.NET-based applications, see Module 10, Deploying Applications, in Course 2373B, Programming with Microsoft Visual Basic.NET. Updating ASP.NET Applications You can update an ASP.NET application at any time without needing to restart the application or IIS, because no components are locked at any stage. No update utility is required because you can simply copy new files over the old ones. The ASP.NET framework detects the update, and it upgrades the live application.

20 12 Module 7: Building Web Applications Overview of ASP.NET Security Topic Objective To provide an overview of security in ASP.NET applications. Lead-in ASP.NET applications can be secured in various ways. Security settings stored in web.config file Out-of-box authentication support Windows authentication Basic, Digest, or Integrated Microsoft Passport authentication Forms (Cookie) authentication Role-based security architecture *****************************ILLEGAL FOR NON-TRAINER USE****************************** Delivery Tip Security is a complicated topic and is only briefly covered in this lesson. Direct students to additional material as often as possible. Most companies need to secure their Web applications so that users can only perform actions they are authorized to perform. The required levels of security can include simple public access to Web pages, secure validation of credit card information, and secure access for trading partners. The System.Web.Security namespace provides all aspects of ASP.NET security. Security Settings Stored in web.config File You can specify security settings in the web.config configuration file that is then deployed with the application. This allows you to define which security options your applications use and, optionally, which users can use the system. Out-of-Box Authentication Support ASP.NET works closely with IIS 5.0 to accept and validate user credentials by using the following authentication methods. Windows authentication. Windows authentication does not require any specific coding in your ASP.NET application, but it does require extra administration when the application is deployed. IIS provides three ways to perform Windows authentication: Basic, Digest, and Integrated. Authentication Definition Basic Digest Integrated Before information without encryption is posted to IIS, a Windows dialog box appears in which users enter their user name and password. Performs the same action as Basic authentication; however, the information is encrypted when sent to the server. Uses the user s logged-on Windows domain account details. This option is more suitable for an intranet application than for an Internet application because it cannot be used through firewalls or proxy servers.

21 Module 7: Building Web Applications 13 The following example shows how to specify Windows authentication in the Web.config file: <authentication mode="windows" /> Note For more information about the different types of authentication, see Designing Secure Web-Based Applications for Microsoft Windows 2000, by Michael Howard, Microsoft Press. Microsoft Passport authentication. Passport authentication requires the user to have a Microsoft Passport that can be created on the Internet. This approach benefits users because they use the same sign-in name and password for any Web site that uses this type of authentication. Note For more information about passports, go to Forms (Cookie) authentication. Web sites that require users to logon to the system from an HTML form usually store a cookie on the client computer. The cookie is used for subsequent visits to the site and the information can then be used for whatever purpose the site requires. This type of authentication is ideal for querying user details against a database in an e-commerce situation. Role-Based Security Architecture ASP.NET allows you to selectively allow or deny requests from specific users or groups of users known as roles. You can store the list of users and roles as part of the Web.config file or as a separate XML document. The following example shows code to use in the Web.config file to allow access for two particular users and the Admins role but deny access to all others using Windows authentication: <authentication mode="windows" /> <authorization> <allow users="doug,denise" /> <deny users="*" /> <allow roles="admins" /> <deny roles="*" /> </authorization> Note For more information about role-based security, see ASP.NET Authorization in the Visual Studio.NET documentation.

22 14 Module 7: Building Web Applications Using Global Events with Global.asax Topic Objective To describe the uses of the Global.asax file in an ASP.NET application. Lead-in The Global.asax file provides application-level logic to your ASP.NET application. Useful for initializing data for application or session state Sub Sub Application_Start(ByVal Application_Start(ByVal Sender Sender As As Object, Object, ByVal ByVal e As As EventArgs) EventArgs) Application("SessionCounter") = 0 End End Sub Sub Sub Sub Session_Start(ByVal Session_Start(ByVal Sender Sender As As Object, Object, ByVal ByVal e As As EventArgs) EventArgs) Application("SessionCounter") Application("SessionCounter") = Application("SessionCounter") Application("SessionCounter") + 1 Session("StartTime") Session("StartTime") = Now Now End End Sub Sub Sub Sub Session_End(ByVal Session_End(ByVal Sender Sender As As Object, Object, ByVal ByVal e As As EventArgs) EventArgs) Application("SessionCounter") Application("SessionCounter") = Application("SessionCounter") Application("SessionCounter") - 1 End End Sub Sub *****************************ILLEGAL FOR NON-TRAINER USE****************************** You can initialize state for application-level or session-level data by using the Global.asax application file. This application file enhances the Global.asa application file used in ASP. Avoid using local variables to store information, because ASP.NET may create multiple instances of the global class. If you need to store information, use application-state or session-state. Application-Level Events ASP.NET provides several events to initialize state at the application level, including the following: Application_Start This event is activated when the first user attempts to gain access to access your Web application. Any subsequent requests will not activate this event even if multiple instances of the Global class have been instantiated. This event is particularly useful for initializing application-state information. Application_BeginRequest This event is activated whenever a request for a URL is received from a client application. Application_EndRequest This event is activated whenever a request for a URL has been completed. Application_End This event is activated when the last instance of the Global class is destroyed so that any final resources can be cleaned up.

23 Module 7: Building Web Applications 15 Session-Level Events ASP.NET also provides session-level events, including the following: Session_Start This event is activated at the beginning of a new client session and is useful for initializing session-state information. Session_End This event is activated when a client session ends after a period of inactivity or if the Session.Abandon method is explicitly called as part of your application code. Example The following example shows how you could use these events in conjunction with state management objects to initialize stateful data: Sub Application_Start(ByVal sender As Object, _ ByVal e As EventArgs) 'Initialize the application-level counter Application("SessionCounter") = 0 End Sub Sub Session_Start(ByVal sender As Object, _ ByVal e As EventArgs) 'Increment the application-level counter Application("SessionCounter") = _ Application("SessionCounter") + 1 'Assign new value to session-level data Session("StartTime") = Now End Sub Sub Session_End(ByVal sender As Object, ByVal e As EventArgs) 'Decrement the application-level counter Application("SessionCounter") = _ Application("SessionCounter") - 1 End Sub

24 16 Module 7: Building Web Applications Creating Web Form Applications Topic Objective To provide an overview of the topics covered in this lesson. Lead-in Web Forms create the visual interaction between the server computer and the user in the same way that HTML and script did previously, but in a compiled and more maintainable fashion. Structure of Web Forms Using HTML Controls Advantages of Web Server Controls Using Web Server Controls Handling Events *****************************ILLEGAL FOR NON-TRAINER USE****************************** Traditionally, you create Web applications by using a combination of static HTML pages and dynamic content provided by client-side and server-side script. ASP.NET provides Web Forms to improve and enhance Web applications. After you complete this lesson, you will be able to: Describe the files that constitute a Web Form. Use the different types of controls available on a Web Form, including HTML and Web server controls. Write code in event handlers that will execute on the server.

25 Module 7: Building Web Applications 17 Structure of Web Forms Topic Objective To describe the structure of ASP.NET Web Forms. Lead-in Because ASP pages often contain script mixed with HTML tags, they can be difficult to maintain. ASP.NET solves this issue by separating the HTML tags from the page logic. Web Forms separate declarative tags from logic The.aspx file contains HTML and other tags The code-behind file contains logic and event handling <tags> code Logon.aspx Logon.aspx.vb *****************************ILLEGAL FOR NON-TRAINER USE****************************** Delivery Tip Point out that, when the application is built and deployed, the.aspx files are copied, but the.aspx.vb files are compiled into the appropriate DLL file. Alternatively, developers can include both code and HTML tags within a single.aspx file by using the <script> tag. This approach provides less separation between the code and tags, but does not require a DLL file to be built and deployed with the application. Because ASP pages often contain HTML tags mixed with user interface eventhandling script, they can be difficult to maintain. When developing applications with the Visual Studio.NET Integrated Development Environment (IDE), ASP.NET Web Forms consist of two separate files: the.aspx file for HTML and other tags, and the code-behind file for the code that executes as a result of user interaction. Because the tags and the code are separated in ASP.NET, you can more easily locate bugs and maintain code. The.aspx File The.aspx file contains definitions for the visual elements of the Web Form, such as the HTML tags, Web controls, client-side script, and static text. This file also includes any ASP.NET directives, such as links to the code-behind module that contains the logic and event-handling code of the Web Form. You can use the Web Forms Designer in Design view to create a page by using drag-and-drop techniques. You can use the HTML view to edit the HTML tags. Microsoft IntelliSense is provided in this view to increase the efficiency and accuracy of creating HTML tag expressions.

26 18 Module 7: Building Web Applications The Code-Behind File The code-behind file is a file with an.aspx.vb extension in an ASP.NET project using Visual Basic.NET. Your server-side and event-handling code is automatically placed in the code-behind file of a Web Form. This file defines a class that is referenced by Page directive within the.aspx file of the Web Form. You can use this class to: Create methods or event-handling code. Provide access to many of the commonly used ASP.NET objects. This class inherits from the System.Web.UI.Page class to provide direct access to many ASP.NET objects, such as Request and Response. Provide event handlers. The class provides a series of useful event handlers, such as the page Load, Init, Unload, and PreRender events. The code generated in the code-behind file looks very similar to the code generated in Windows Forms. Note the following when using the code-behind file: It contains variable declarations. The code contains variable declarations for the visible controls so they can be accessed programmatically within your procedures. It contains variable events. As the control variables are declared using the WithEvents modifier, you can use the control events to execute user interface code to handle events like submitting information to a database or linking to another page. It automatically compiles with your application. The code in this file is automatically compiled into your dynamic-link library (DLL) when you build the application.

27 Module 7: Building Web Applications 19 Using HTML Controls Topic Objective To explain how to use HTML controls. Lead-in ASP.NET provides two main types of controls for you to use: HTML controls and Web controls. Direct relationship to preexisting HTML tags Client side by default Server side with runat=server directive Properties correspond one-to-one with HTML, weakly typed Defined with HTML tag <input <input type=text id="text1" value="some text" text" runat="server"> ASP.NET includes HTML controls for commonly used HTML elements *****************************ILLEGAL FOR NON-TRAINER USE****************************** HTML controls have a direct relationship to preexisting HTML tags. The controls are defined by classes in the System.Web.UI.HtmlControls namespace supplied by the.net Framework. These controls correspond very closely to the HTML elements that they render. Specifying Client-Side or Server-Side HTML Controls By default, HTML controls are run on the client. They are treated as opaque text by the server and passed straight through to the browser for interpreting as HTML elements. You can also write client-side script to process control events on the client. To run controls on the server, set the runat directive to the value of server to convert the HTML elements to HTML server controls. You can do this manually by editing the HTML tag of the control, or you can select the option on the context menu of the control. Manipulating HTML Controls You define all HTML by using an HTML tag. For example, the following code declares a text input field to run on the server: <input type=text id="text1" value="some text" runat="server"> You can manipulate control properties programmatically from server-side code when the control is marked to run on the server. These properties correspond directly to their equivalent HTML tag predecessors. For example, the HTML tag <INPUT> supports an attribute called Value, and the HTMLInputText class supports an equivalent Value property.

28 20 Module 7: Building Web Applications You can set other properties of the HTML control by using the Attributes collection property of the control. This type of property setting is considered weakly typed because the collection only stores and retrieves String values, as shown in the following example: HTMLTable1.Attributes("bgColor") = "Green" 'Weakly typed To specify the programmatic accessor that identifies the control in the server code, use the ID attribute. To set the initial display value of the text field, use the VALUE attribute. HTML Elements and HTML Server Controls ASP.NET includes HTML controls for commonly used HTML elements such as forms, input elements, tables, and so on. The following list matches the client-side HTML elements with their corresponding HTML server controls. HTML element HTML server control <A> HTMLAnchor <IMG> HTMLImage <FORM> HTMLForm <TABLE> HTMLTable <TR> HTMLTableRow <TD> HTMLTableCell <SELECT> HTMLSelect <TEXTAREA> HTMLTextArea <BUTTON> HTMLButton <INPUT TYPE=TEXT> HTMLInputText < INPUT TYPE=FILE> HTMLInputFile < INPUT TYPE=SUBMIT> HTMLInputButton < INPUT TYPE=BUTTON> HTMLInputButton < INPUT TYPE=RESET> HTMLInputButton < INPUT TYPE=HIDDEN> HTMLInputHidden

29 Module 7: Building Web Applications 21 Advantages of Web Server Controls Topic Objective To provide an overview of the features of Web server controls. Lead-in The second type of control that ASP.NET includes is the Web server control. Automatic browser detection Detect capabilities of client and render accordingly Strongly typed, consistent object model Enables compile-time type checking Declared with XML tags Server side only using runat=server directive <asp:textbox id="text2" text="some text" text" runat="server"> </asp:textbox> Rich functionality Example: Calendar or RadioButtonList control *****************************ILLEGAL FOR NON-TRAINER USE****************************** In addition to HTML controls, ASP.NET Web Forms also provide Web server controls. Web server controls run exclusively on the server, and provide the following advantages: Automatic browser detection Web server controls can render themselves differently to suit the capabilities of different browsers. For example, a control may send dynamic HTML (DHTML) to a rich browser (HTML 4.0 and later), and send HTML and script to a more basic client browser. This is known as creating uplevel and downlevel capability. Strongly typed, consistent object model Web server controls are strongly typed, so compile-time checking of code provides you with accurate error messages before the application is built. With Web controls, you can use a consistent object model, which is similar to Windows Forms controls. For example, you can set the BackColor property of a Button control explicitly by using a strongly typed constant, as shown in the following example. Button.BackColor = Color.Green 'Strongly typed

30 22 Module 7: Building Web Applications Declared with XML tags You declare Web server controls by using an XML tag. This tag references the asp namespace and specifies information regarding the type of Web control, a programmatic identifier through use of the ID attribute, and any initial values. The following example shows the syntax for creating a simple TextBox Web control whose ID is text2 and whose initial TEXT value is some text. <asp:textbox id="text2" text="some text" runat="server"> </asp:textbox> Rich functionality Web server controls include enhanced versions of traditional HTML form controls such as Button and TextBox, as well as complex controls such as Calendar, DataGrid, and AdRotator (advertisement rotator). These controls do not correspond directly to HTML elements or attributes.

31 Module 7: Building Web Applications 23 Using Web Server Controls Topic Objective To explain available Web server controls. Lead-in There are several types of Web server controls available in ASP.NET Web Forms. Intrinsic controls List controls for repetition Validation controls validate input Rich controls simplify common Web page requirements *****************************ILLEGAL FOR NON-TRAINER USE****************************** Delivery Tip Pick one or two individual controls for discussion, particularly a validation control and rich control. ASP.NET Web server controls can be separated into four main categories: intrinsic, list, validation, and rich controls. The table below explains each of these categories. Category Definition Examples Intrinsic controls List controls Validation controls Rich controls Provides the basic functionality for user interaction with the browser. Many of these controls are similar to the corresponding HTML controls, but their enhanced properties and methods allow a more powerful and consistent programming style. Used for repetition when displaying any type of list. Provides simple control validation that displays a message to the user without making a return trip to the server. Simplifies common Web page requirements. Button, TextBox, CheckBox DropDownList, ListBox, Repeater, DataGrid RequiredFieldValidator, RangeValidator, RegularExpressionValida tor, CompareValidator AdRotator, Calendar

AC I Sem 5_TYCS. ASP.NET application codes can be written in any of the following languages:

AC I Sem 5_TYCS. ASP.NET application codes can be written in any of the following languages: Chapter 1-Overview of.net Framework What is ASP.NET? ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required to

More information

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p.

.NET, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. Introduction p. xix.net, C#, and ASP.NET p. 1 What Is.NET? p. 2 The Common Language Runtime p. 2 Introducing C# p. 3 Introducing ASP.NET p. 4 Getting Started p. 5 Installing Internet Information Server

More information

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill

Chapter 9. Web Applications The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Chapter 9 Web Applications McGraw-Hill 2010 The McGraw-Hill Companies, Inc. All rights reserved. Chapter Objectives - 1 Explain the functions of the server and the client in Web programming Create a Web

More information

"Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary

Charting the Course... MOC A Introduction to Web Development with Microsoft Visual Studio Course Summary Description Course Summary This course provides knowledge and skills on developing Web applications by using Microsoft Visual. Objectives At the end of this course, students will be Explore ASP.NET Web

More information

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1

DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 DE-2310 Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2008 Delivery Method Instructor-led (Classroom)

More information

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days

2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days 2310C VB - Developing Web Applications Using Microsoft Visual Studio 2008 Course Number: 2310C Course Length: 5 Days Certification Exam This course will help you prepare for the following Microsoft Certified

More information

DE Introduction to Web Development with Microsoft Visual Studio 2010

DE Introduction to Web Development with Microsoft Visual Studio 2010 DE-10267 Introduction to Web Development with Microsoft Visual Studio 2010 Summary Duration 5 Days Audience Developers Level 100 Technology Microsoft Visual Studio 2010 Delivery Method Instructor-led (Classroom)

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 Introduction to Web Development with Microsoft Visual Studio 2010 Course 10267; 5 Days, Instructor-led Course Description This five-day instructor-led course provides knowledge and skills on developing

More information

Early Data Analyzer Web User Guide

Early Data Analyzer Web User Guide Early Data Analyzer Web User Guide Early Data Analyzer, Version 1.4 About Early Data Analyzer Web Getting Started Installing Early Data Analyzer Web Opening a Case About the Case Dashboard Filtering Tagging

More information

Building Web Sites Using the EPiServer Content Framework

Building Web Sites Using the EPiServer Content Framework Building Web Sites Using the EPiServer Content Framework Product version: 4.60 Document version: 1.0 Document creation date: 28-03-2006 Purpose A major part in the creation of a Web site using EPiServer

More information

Microsoft Solution for Internet Business. Developer's Guide. Version 1.0, January 2002

Microsoft Solution for Internet Business. Developer's Guide. Version 1.0, January 2002 Microsoft Solution for Internet Business Developer's Guide Version 1.0, January 2002 Abstract This guide contains guidelines, coding samples, and procedures to help you understand and develop Web sites

More information

Developing Web Applications Using Microsoft Visual Studio 2008 SP1

Developing Web Applications Using Microsoft Visual Studio 2008 SP1 Developing Web s Using Microsoft Visual Studio 2008 SP1 Introduction This five day instructor led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2008

More information

1.1 Customize the Layout and Appearance of a Web Page. 1.2 Understand ASP.NET Intrinsic Objects. 1.3 Understand State Information in Web Applications

1.1 Customize the Layout and Appearance of a Web Page. 1.2 Understand ASP.NET Intrinsic Objects. 1.3 Understand State Information in Web Applications LESSON 1 1.1 Customize the Layout and Appearance of a Web Page 1.2 Understand ASP.NET Intrinsic Objects 1.3 Understand State Information in Web Applications 1.4 Understand Events and Control Page Flow

More information

Microsoft Office Groove Server Groove Manager. Domain Administrator s Guide

Microsoft Office Groove Server Groove Manager. Domain Administrator s Guide Microsoft Office Groove Server 2007 Groove Manager Domain Administrator s Guide Copyright Information in this document, including URL and other Internet Web site references, is subject to change without

More information

Introduction to Web Development with Microsoft Visual Studio 2010

Introduction to Web Development with Microsoft Visual Studio 2010 10267 - Introduction to Web Development with Microsoft Visual Studio 2010 Duration: 5 days Course Price: $2,975 Software Assurance Eligible Course Description Course Overview This five-day instructor-led

More information

Lab Answer Key for Module 1: Creating Databases and Database Files

Lab Answer Key for Module 1: Creating Databases and Database Files Lab Answer Key for Module 1: Creating Databases and Database Files Table of Contents Lab 1: Creating Databases and Database Files 1 Exercise 1: Creating a Database 1 Exercise 2: Creating Schemas 4 Exercise

More information

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course

M Developing Microsoft ASP.NET Web Applications Using Visual Studio.NET 5 Day Course Module 1: Overview of the Microsoft.NET Framework This module introduces the conceptual framework of the.net Framework and ASP.NET. Introduction to the.net Framework Overview of ASP.NET Overview of the

More information

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010

COURSE OUTLINE: OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Name OD10267A Introduction to Web Development with Microsoft Visual Studio 2010 Course Duration 2 Days Course Structure Online Course Overview This course provides knowledge and skills on developing

More information

5.1 Configuring Authentication, Authorization, and Impersonation. 5.2 Configuring Projects, Solutions, and Reference Assemblies

5.1 Configuring Authentication, Authorization, and Impersonation. 5.2 Configuring Projects, Solutions, and Reference Assemblies LESSON 5 5.1 Configuring Authentication, Authorization, and Impersonation 5.2 Configuring Projects, Solutions, and Reference Assemblies 5.3 Publish Web Applications 5.4 Understand Application Pools MTA

More information

Visual Studio.NET Academic Assignment Manager Source Package

Visual Studio.NET Academic Assignment Manager Source Package Visual Studio.NET Academic Assignment Manager Source Package Visual Studio.NET Academic Assignment Manager Source Package Visual Studio.NET Academic Assignment Manager provides a way for you to create

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 4 5 6 8 Introduction to ASP.NET, Visual Studio and C# CST272 ASP.NET Static and Dynamic Web Applications Static Web pages Created with HTML controls renders exactly

More information

Module 4: Object- Oriented Design for Visual Basic.NET

Module 4: Object- Oriented Design for Visual Basic.NET Module 4: Object- Oriented Design for Visual Basic.NET Contents Overview 1 Designing Classes 2 Practice: Deriving Classes from Use Cases 10 Object-Oriented Programming Concepts 11 Advanced Object-Oriented

More information

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p.

ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. Preface p. xix ASP.NET 2.0 p. 1.NET Framework 2.0 p. 2 ASP.NET 2.0 p. 4 New Features p. 5 Special Folders Make Integration Easier p. 5 Security p. 6 Personalization p. 6 Master Pages p. 6 Navigation p.

More information

10267 Introduction to Web Development with Microsoft Visual Studio 2010

10267 Introduction to Web Development with Microsoft Visual Studio 2010 10267 Introduction to Web Development with Microsoft Visual Studio 2010 Course Number: 10267A Category: Visual Studio 2010 Duration: 5 days Course Description This five-day instructor-led course provides

More information

Symprex Out-of-Office Extender

Symprex Out-of-Office Extender Symprex Out-of-Office Extender User's Guide Version 7.0.0. Copyright 017 Symprex Limited. All Rights Reserved. Contents Chapter 1 1 Introduction 1 System Requirements Permissions Requirements Chapter On-Premises

More information

ASP.NET - MANAGING STATE

ASP.NET - MANAGING STATE ASP.NET - MANAGING STATE http://www.tutorialspoint.com/asp.net/asp.net_managing_state.htm Copyright tutorialspoint.com Hyper Text Transfer Protocol HTTP is a stateless protocol. When the client disconnects

More information

Module 9: Developing Components in Visual Basic.NET

Module 9: Developing Components in Visual Basic.NET Module 9: Developing Components in Visual Basic.NET Contents Overview 1 Components Overview 2 Creating Serviced Components 11 Demonstration: Creating a Serviced Component 27 Lab 9.1: Creating a Serviced

More information

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning

Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Course Outline: Course 10267A: Introduction to Web Development with Microsoft Visual Studio 2010 Learning Method: Instructor-led Classroom Learning Duration: 5.00 Day(s)/ 40 hrs Overview: This five-day

More information

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010

10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 10267A CS: Developing Web Applications Using Microsoft Visual Studio 2010 Course Overview This instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

INTRODUCTION & IMPLEMENTATION OF ASP.NET

INTRODUCTION & IMPLEMENTATION OF ASP.NET INTRODUCTION & IMPLEMENTATION OF ASP.NET CONTENTS I. Introduction to ASP.NET 1. Difference between ASP and ASP.NET 2. Introduction to IIS 3. What is Web Application? Why is it used? II. Implementation

More information

Microsoft Dynamics AX 4.0

Microsoft Dynamics AX 4.0 Microsoft Dynamics AX 4.0 Install and Configure a Microsoft Dynamics AX Enterprise Portal Server White Paper Date: June 27, 2006 http://go.microsoft.com/fwlink/?linkid=69531&clcid=0x409 Table of Contents

More information

Developing Web Applications Using Microsoft Visual Studio 2008

Developing Web Applications Using Microsoft Visual Studio 2008 Course 2310C: Developing Web Applications Using Microsoft Visual Studio 2008 Length: 5 Day(s) Published: April 24, 2008 Language(s): English Audience(s): Developers Level: 100 Technology: Microsoft Visual

More information

Installation Guide. EventTracker Enterprise. Install Guide Centre Park Drive Publication Date: Aug 03, U.S. Toll Free:

Installation Guide. EventTracker Enterprise. Install Guide Centre Park Drive Publication Date: Aug 03, U.S. Toll Free: EventTracker Enterprise Install Guide 8815 Centre Park Drive Publication Date: Aug 03, 2010 Columbia MD 21045 U.S. Toll Free: 877.333.1433 Abstract The purpose of this document is to help users install

More information

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008

Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008 Course ID: 2310C Course Name: Developing Web Applications Using Microsoft Visual Studio 2008 Audience This course is intended for introductory-level Web developers who have knowledge of Hypertext Markup

More information

ASP.NET provides several mechanisms to manage state in a more powerful and easier to utilize way than classic ASP.

ASP.NET provides several mechanisms to manage state in a more powerful and easier to utilize way than classic ASP. Page 1 of 5 ViewState... ASP.NET provides several mechanisms to manage state in a more powerful and easier to utilize way than classic ASP. By: John Kilgo Date: July 20, 2003 Introduction A DotNetJohn

More information

Migrating from ASP to ASP.NET

Migrating from ASP to ASP.NET Migrating from ASP to ASP.NET Leveraging ASP.NET Server Controls Dan Wahlin Wahlin Consulting LLC http://www.xmlforasp.net Summary: Converting ASP web applications to ASP.NET can prove to be a timeconsuming

More information

x10data Application Platform v7.1 Installation Guide

x10data Application Platform v7.1 Installation Guide Copyright Copyright 2010 Automated Data Capture (ADC) Technologies, Incorporated. All rights reserved. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the

More information

TechNet Home > Products & Technologies > Desktop Products & Technologies > Microsoft Office > SharePoint Portal Server 2003 > Deploy

TechNet Home > Products & Technologies > Desktop Products & Technologies > Microsoft Office > SharePoint Portal Server 2003 > Deploy TechNet Home > Products & Technologies > Desktop Products & Technologies > Microsoft Office > SharePoint Portal Server 2003 > Deploy Reference: http://www.microsoft.com/technet/prodtechnol/office/sps2003/deploy/spst2003.mspx?pf=true

More information

CST272 Getting Started Page 1

CST272 Getting Started Page 1 CST272 Getting Started Page 1 1 2 3 5 6 8 10 Introduction to ASP.NET and C# CST272 ASP.NET ASP.NET Server Controls (Page 1) Server controls can be Buttons, TextBoxes, etc. In the source code, ASP.NET controls

More information

Module 3: Managing Groups

Module 3: Managing Groups Module 3: Managing Groups Contents Overview 1 Lesson: Creating Groups 2 Lesson: Managing Group Membership 20 Lesson: Strategies for Using Groups 27 Lesson: Using Default Groups 44 Lab: Creating and Managing

More information

SharePoint Portal Server 2003 Advanced Migration Scenarios

SharePoint Portal Server 2003 Advanced Migration Scenarios SharePoint Portal Server 2003 Advanced Migration Scenarios White Paper Published: March 2004 Table of Contents Introduction 1 Related White Papers 1 Background 2 SharePoint Portal Server 2003 Document

More information

Getting Started with Tally.Developer 9 Series A Release 3.0

Getting Started with Tally.Developer 9 Series A Release 3.0 Getting Started with Tally.Developer 9 Series A Release 3.0 The information contained in this document is current as of the date of publication and subject to change. Because Tally must respond to changing

More information

Naresh Information Technologies

Naresh Information Technologies Naresh Information Technologies Server-side technology ASP.NET Web Forms & Web Services Windows Form: Windows User Interface ADO.NET: Data & XML.NET Framework Base Class Library Common Language Runtime

More information

2609 : Introduction to C# Programming with Microsoft.NET

2609 : Introduction to C# Programming with Microsoft.NET 2609 : Introduction to C# Programming with Microsoft.NET Introduction In this five-day instructor-led course, developers learn the fundamental skills that are required to design and develop object-oriented

More information

Microsoft ASP.NET Using Visual Basic 2008: Volume 1 Table of Contents

Microsoft ASP.NET Using Visual Basic 2008: Volume 1 Table of Contents Table of Contents INTRODUCTION...INTRO-1 Prerequisites...INTRO-2 Installing the Practice Files...INTRO-3 Software Requirements...INTRO-3 Installation...INTRO-3 The Chapter Files...INTRO-3 Sample Database...INTRO-3

More information

Module 7: Automating Administrative Tasks

Module 7: Automating Administrative Tasks Module 7: Automating Administrative Tasks Table of Contents Module Overview 7-1 Lesson 1: Automating Administrative Tasks in SQL Server 2005 7-2 Lesson 2: Configuring SQL Server Agent 7-10 Lesson 3: Creating

More information

CS708 Lecture Notes. Visual Basic.NET Programming. Object-Oriented Programming Web Technologies and ASP.NET. (Part I) (Lecture Notes 5B)

CS708 Lecture Notes. Visual Basic.NET Programming. Object-Oriented Programming Web Technologies and ASP.NET. (Part I) (Lecture Notes 5B) CS708 Lecture Notes Visual Basic.NET Programming Object-Oriented Programming Web Technologies and ASP.NET (Part I) (Lecture Notes 5B) Prof. Abel Angel Rodriguez SECTION I. INTRODUCTION TO WEB APPLICATIONS

More information

Getting Started with Tally.Developer 9

Getting Started with Tally.Developer 9 Getting Started with Tally.Developer 9 The information contained in this document is current as of the date of publication and subject to change. Because Tally must respond to changing market conditions,

More information

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio

Microsoft Official Courseware Course Introduction to Web Development with Microsoft Visual Studio Course Overview: This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual Studio 2010. Prerequisites Before attending this course, students

More information

INSTALLATION & OPERATIONS GUIDE Wavextend Calculation Framework & List Manager for CRM 4.0

INSTALLATION & OPERATIONS GUIDE Wavextend Calculation Framework & List Manager for CRM 4.0 INSTALLATION & OPERATIONS GUIDE Wavextend Calculation Framework & List Manager for CRM 4.0 COPYRIGHT Information in this document, including URL and other Internet Web site references, is subject to change

More information

Windows Server 2012: Manageability and Automation. Module 1: Multi-Machine Management Experience

Windows Server 2012: Manageability and Automation. Module 1: Multi-Machine Management Experience Windows Server 2012: Manageability and Automation Module Manual Author: Rose Malcolm, Content Master Published: 4 th September 2012 Information in this document, including URLs and other Internet Web site

More information

An Overview of Microsoft Visual Studio 2008

An Overview of Microsoft Visual Studio 2008 An Overview of Microsoft Visual Studio 2008 White Paper November 2007 For the latest information, please see www.microsoft.com/vstudio This is a preliminary document and may be changed substantially prior

More information

x10data Smart Client 6.5 for Windows Mobile Installation Guide

x10data Smart Client 6.5 for Windows Mobile Installation Guide x10data Smart Client 6.5 for Windows Mobile Installation Guide Copyright Copyright 2009 Automated Data Capture (ADC) Technologies, Incorporated. All rights reserved. Complying with all applicable copyright

More information

Overview of ASP.NET and Web Forms

Overview of ASP.NET and Web Forms ASP.NET with Web Forms Objectives Learn about Web Forms Learn the Web controls that are built into Web Forms Build a Web Form Assumptions The following should be true for you to get the most out of this

More information

UC for Enterprise (UCE) NEC Centralized Authentication Service (NEC CAS)

UC for Enterprise (UCE) NEC Centralized Authentication Service (NEC CAS) UC for Enterprise (UCE) NEC Centralized Authentication Service (NEC CAS) Installation Guide NEC NEC Corporation October 2010 NDA-30362, Revision 15 Liability Disclaimer NEC Corporation reserves the right

More information

2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET

2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET 2559 : Introduction to Visual Basic.NET Programming with Microsoft.NET Introduction Elements of this syllabus are subject to change. This five-day instructor-led course provides students with the knowledge

More information

Microsoft Dynamics GP Web Client Installation and Administration Guide For Service Pack 1

Microsoft Dynamics GP Web Client Installation and Administration Guide For Service Pack 1 Microsoft Dynamics GP 2013 Web Client Installation and Administration Guide For Service Pack 1 Copyright Copyright 2013 Microsoft. All rights reserved. Limitation of liability This document is provided

More information

Master Calendar Integrated Authentication Configuration Instructions. Dean Evans & Associates, Inc.

Master Calendar Integrated Authentication Configuration Instructions. Dean Evans & Associates, Inc. Master Calendar Integrated Authentication Configuration Instructions Dean Evans & Associates, Inc. Copyright Copyright 2013 Dean Evans & Associates, Inc. All rights reserved. No part of this document may

More information

Program Contents: DOTNET TRAINING IN CHENNAI

Program Contents: DOTNET TRAINING IN CHENNAI DOTNET TRAINING IN CHENNAI NET Framework - In today s world of enterprise application development either desktop or Web, one of leaders and visionary is Microsoft.NET technology. The.NET platform also

More information

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1

Web Forms ASP.NET. 2/12/2018 EC512 - Prof. Skinner 1 Web Forms ASP.NET 2/12/2018 EC512 - Prof. Skinner 1 Active Server Pages (.asp) Used before ASP.NET and may still be in use. Merges the HTML with scripting on the server. Easier than CGI. Performance is

More information

Module 5: Integrating Domain Name System and Active Directory

Module 5: Integrating Domain Name System and Active Directory Module 5: Integrating Domain Name System and Active Directory Contents Overview 1 Lesson: Configuring Active Directory Integrated Zones 2 Lesson: Configuring DNS Dynamic Updates 14 Lesson: Understanding

More information

M Introduction to Visual Basic.NET Programming with Microsoft.NET 5 Day Course

M Introduction to Visual Basic.NET Programming with Microsoft.NET 5 Day Course Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and provides

More information

ASP.NET Web Forms Programming Using Visual Basic.NET

ASP.NET Web Forms Programming Using Visual Basic.NET ASP.NET Web Forms Programming Using Visual Basic.NET Duration: 35 hours Price: $750 Delivery Option: Attend training via an on-demand, self-paced platform paired with personal instructor facilitation.

More information

Getting Started with EPiServer 4

Getting Started with EPiServer 4 Getting Started with EPiServer 4 Abstract This white paper includes information on how to get started developing EPiServer 4. The document includes, among other things, high-level installation instructions,

More information

Authlogics Forefront TMG and UAG Agent Integration Guide

Authlogics Forefront TMG and UAG Agent Integration Guide Authlogics Forefront TMG and UAG Agent Integration Guide With PINgrid, PINphrase & PINpass Technology Product Version: 3.0.6230.0 Publication date: January 2017 Authlogics, 12 th Floor, Ocean House, The

More information

2730 : Building Microsoft Content Management Server 2002 Solutions

2730 : Building Microsoft Content Management Server 2002 Solutions 2730 : Building Microsoft Content Management Server 2002 Solutions Introduction This four-day, instructor-led course provides students with the knowledge and skills to plan, implement, develop, and manage

More information

ASP.NET Pearson Education, Inc. All rights reserved.

ASP.NET Pearson Education, Inc. All rights reserved. 1 ASP.NET 2 Rule One: Our client is always right. Rule Two: If you think our client is wrong, see Rule One. Anonymous 3 25.1 Introduction ASP.NET 2.0 and Web Forms and Controls Web application development

More information

Assembling a Three-Tier Web Form Application

Assembling a Three-Tier Web Form Application Chapter 16 Objectives Assembling a Three-Tier Application In this chapter, you will: Understand the concept of state for Web applications Create an ASP.NET user control Use data binding technology Develop

More information

ASP.NET Course Designer and Acquisition Editor Centre for Information Technology and Engineering Manonmaniam Sundaranar University Tirunelveli

ASP.NET Course Designer and Acquisition Editor Centre for Information Technology and Engineering Manonmaniam Sundaranar University Tirunelveli ASP.NET Course Designer and Acquisition Editor Centre for Information Technology and Engineering Manonmaniam Sundaranar University Tirunelveli ASP.NET i CONTENTS Lecture 1 Introduction to ASP.NET 1 o Webserver

More information

What You Need to Use this Book

What You Need to Use this Book What You Need to Use this Book The following is the list of recommended system requirements for running the code in this book: Windows 2000 Professional or Windows XP Professional with IIS installed Visual

More information

Nesstar Server Configuration Tool User Guide

Nesstar Server Configuration Tool User Guide Nesstar Server Configuration Tool User Guide Version 3.50 The Configuration Tool allows the server Administrator to edit most of the server configuration properties and to perform basic administrative

More information

ASP.NET State Management Techniques

ASP.NET State Management Techniques ASP.NET State Management Techniques This article is for complete beginners who are new to ASP.NET and want to get some good knowledge about ASP.NET State Management. What is the need of State Management?

More information

Configuring Servers and Services in Helm A guide to configuring Helm to effectively use your multi-server environment.

Configuring Servers and Services in Helm A guide to configuring Helm to effectively use your multi-server environment. Configuring Servers and Services in Helm A guide to configuring Helm to effectively use your multi-server environment. WebHost Automation Ltd http://www.webhostautomation.com/ January 2004 Doc: HELM300.01.13

More information

Unit-3 State Management in ASP.NET

Unit-3 State Management in ASP.NET STATE MANAGEMENT Web is Stateless. It means a new instance of the web page class is re-created each time the page is posted to the server. As we all know HTTP is a stateless protocol, it s can't holds

More information

Exclaimer Mail Archiver

Exclaimer Mail Archiver Deployment Guide - Outlook Add-In www.exclaimer.com Contents About This Guide... 3 System Requirements... 4 Software... 4 Installation Files... 5 Deployment Preparation... 6 Installing the Add-In Manually...

More information

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A)

Introduction to Web Development with Microsoft Visual Studio 2010 (10267A) Introduction to Web Development with Microsoft Visual Studio 2010 (10267A) Overview This five-day instructor-led course provides knowledge and skills on developing Web applications by using Microsoft Visual

More information

Active Server Pages ( ASP.NET)

Active Server Pages ( ASP.NET) Object-Oriented Programming Chapter 9 Active Server Pages ( ASP.NET) 241 Chapter 9 Active Server Pages ( ASP.NET) Chapter 9 Active Server Pages ( ASP.NET) ASP.NET is an object-oriented, event-driven platform

More information

unisys Internet Commerce Enabler Technical Overview imagine it. done. Release 11.1 October

unisys Internet Commerce Enabler Technical Overview imagine it. done. Release 11.1 October unisys imagine it. done. Internet Commerce Enabler Technical Overview Release 11.1 October 2010 7850 2473 004 NO WARRANTIES OF ANY NATURE ARE EXTENDED BY THIS DOCUMENT. Any product or related information

More information

Getting Started with EPiServer 4

Getting Started with EPiServer 4 Getting Started with EPiServer 4 Abstract This white paper includes information on how to get started developing EPiServer 4. The document includes, among other things, high-level installation instructions,

More information

SECURE FILE TRANSFER PROTOCOL. EventTracker v8.x and above

SECURE FILE TRANSFER PROTOCOL. EventTracker v8.x and above SECURE FILE TRANSFER PROTOCOL EventTracker v8.x and above Publication Date: January 02, 2019 Abstract This guide provides instructions to configure SFTP logs for User Activities and File Operations. Once

More information

Developing ASP.NET MVC 4 Web Applications

Developing ASP.NET MVC 4 Web Applications Developing ASP.NET MVC 4 Web Applications Course 20486B; 5 days, Instructor-led Course Description In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework 4.5

More information

Tennessee. Trade & Industrial Course Web Page Design II - Site Designer Standards. A Guide to Web Development Using Adobe Dreamweaver CS3 2009

Tennessee. Trade & Industrial Course Web Page Design II - Site Designer Standards. A Guide to Web Development Using Adobe Dreamweaver CS3 2009 Tennessee Trade & Industrial Course 655745 Web Page Design II - Site Designer Standards A Guide to Web Development Using Adobe Dreamweaver CS3 2009 ation Key SE Student Edition LE Learning Expectation

More information

ANALYZE. Business Analytics Technical White Paper. Microsoft Dynamics TM NAV. Technical White Paper

ANALYZE. Business Analytics Technical White Paper. Microsoft Dynamics TM NAV. Technical White Paper ANALYZE Microsoft Dynamics TM NAV Business Analytics Technical White Paper Technical White Paper This technical white paper provides a conceptual overview of Business Analytics for Microsoft Dynamics NAV

More information

Getting Started with the Bullhorn SOAP API and C#/.NET

Getting Started with the Bullhorn SOAP API and C#/.NET Getting Started with the Bullhorn SOAP API and C#/.NET Introduction This tutorial is for developers who develop custom applications that use the Bullhorn SOAP API and C#. You develop a sample application

More information

Developing ASP.NET MVC 5 Web Applications

Developing ASP.NET MVC 5 Web Applications Developing ASP.NET MVC 5 Web Applications Course 20486C; 5 days, Instructor-led Course Description In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework tools

More information

Module 5: State Management

Module 5: State Management Module 5: State Management Contents Overview 1 Lesson: Configuring the Control State 2 Lesson: Extending the Session State Mechanism 8 Lesson: Creating the ASP.NET Cache Object 12 Lab A: State Management

More information

Module 3-1: Building with DIRS and SOURCES

Module 3-1: Building with DIRS and SOURCES Module 3-1: Building with DIRS and SOURCES Contents Overview 1 Lab 3-1: Building with DIRS and SOURCES 9 Review 10 Information in this document, including URL and other Internet Web site references, is

More information

Extended Search Administration

Extended Search Administration IBM Lotus Extended Search Extended Search Administration Version 4 Release 0.1 SC27-1404-02 IBM Lotus Extended Search Extended Search Administration Version 4 Release 0.1 SC27-1404-02 Note! Before using

More information

M Introduction to C# Programming with Microsoft.NET - 5 Day Course

M Introduction to C# Programming with Microsoft.NET - 5 Day Course Module 1: Getting Started This module presents the concepts that are central to the Microsoft.NET Framework and platform, and the Microsoft Visual Studio.NET integrated development environment (IDE); describes

More information

Break Through Your Software Development Challenges with Microsoft Visual Studio 2008

Break Through Your Software Development Challenges with Microsoft Visual Studio 2008 Break Through Your Software Development Challenges with Microsoft Visual Studio 2008 White Paper November 2007 For the latest information, please see www.microsoft.com/vstudio This is a preliminary document

More information

Module 1: Creating an ASP.NET 2.0 Application

Module 1: Creating an ASP.NET 2.0 Application Module 1: Creating an ASP.NET 2.0 Application Contents Overview 1 Lesson: Evaluating the Features of the New Web Development Environment 2 Lesson: Using the Compile-on-Demand Resources 11 Lesson: Using

More information

DOT NET Syllabus (6 Months)

DOT NET Syllabus (6 Months) DOT NET Syllabus (6 Months) THE COMMON LANGUAGE RUNTIME (C.L.R.) CLR Architecture and Services The.Net Intermediate Language (IL) Just- In- Time Compilation and CLS Disassembling.Net Application to IL

More information

WebAD IISADMPWD. Replacement Tool v2.5. Installation and Configuration Guide. Instructions to Install and Configure IISADMPWD

WebAD IISADMPWD. Replacement Tool v2.5. Installation and Configuration Guide. Instructions to Install and Configure IISADMPWD WebAD IISADMPWD Replacement Tool v2.5 Installation and Configuration Guide Instructions to Install and Configure IISADMPWD Replacement Tool v2.5 Web Active Directory, LLC Contents Overview... 2 Solution

More information

Receive and Forward syslog events through EventTracker Agent. EventTracker v9.0

Receive and Forward syslog events through EventTracker Agent. EventTracker v9.0 Receive and Forward syslog events through EventTracker Agent EventTracker v9.0 Publication Date: July 23, 2018 Abstract The purpose of this document is to help users to receive syslog messages from various

More information

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET

VB.NET. Exercise 1: Creating Your First Application in Visual Basic.NET VB.NET Module 1: Getting Started This module introduces Visual Basic.NET and explains how it fits into the.net platform. It explains how to use the programming tools in Microsoft Visual Studio.NET and

More information

COURSE 20486B: DEVELOPING ASP.NET MVC 4 WEB APPLICATIONS

COURSE 20486B: DEVELOPING ASP.NET MVC 4 WEB APPLICATIONS ABOUT THIS COURSE In this course, students will learn to develop advanced ASP.NET MVC applications using.net Framework 4.5 tools and technologies. The focus will be on coding activities that enhance the

More information

LABEL ARCHIVE Administrator s Guide

LABEL ARCHIVE Administrator s Guide LABEL ARCHIVE Administrator s Guide DOC-LAS2015_25/05/2015 The information in this manual is not binding and may be modified without prior notice. Supply of the software described in this manual is subject

More information

Installing and Configuring Worldox/Web Mobile

Installing and Configuring Worldox/Web Mobile Installing and Configuring Worldox/Web Mobile SETUP GUIDE v 1.1 Revised 6/16/2009 REVISION HISTORY Version Date Author Description 1.0 10/20/2008 Michael Devito Revised and expanded original draft document.

More information

Microsoft Office Integration

Microsoft Office Integration Microsoft Office Integration Product version: 4.60 Document version: 1.0 Document creation date: 23-03-2006 Purpose This technical note describes the functionality of the Microsoft Office integration with

More information

ControlPoint. Advanced Installation Guide. September 07,

ControlPoint. Advanced Installation Guide. September 07, ControlPoint Advanced Installation Guide September 07, 2017 www.metalogix.com info@metalogix.com 202.609.9100 Copyright International GmbH., 2008-2017 All rights reserved. No part or section of the contents

More information