1 / 23

Web Forms and ASP.NET

12. Web Forms and ASP.NET. Programming Right from the Start with Visual Basic .NET 1/e. Objectives. Understand the relationship between HTML and ASP.NET Understand how web applications work in terms of the client/server model Develop ASP.NET applications using a text editor.

snana
Download Presentation

Web Forms and ASP.NET

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 12 Web Formsand ASP.NET Programming Right from the Start with Visual Basic .NET 1/e

  2. Objectives • Understand the relationship between HTML and ASP.NET • Understand how web applications work in terms of the client/server model • Develop ASP.NET applications using a text editor

  3. Objectives (cont.) • Develop ASP.NET applications using Visual Studio .NET • Understand the similarities and differences between Windows Forms and Web Forms • Develop interesting web applications using ASP.NET and Visual Studio

  4. 12-1 HTML andStatic Web Pages • HTML stands for Hypertext Markup Language, a language for displaying text in a web browser such as Internet Explorer or Netscape Navigator. • Text is marked by tags consisting of a left angle bracket (<), a tag name, and a right angle bracket (>).

  5. 12-1 HTML andStatic Web Pages (cont.) • Tags are usually paired to start and end the tag instruction. • The end tag looks like the start tag except a slash (/) precedes the text with the brackets. • Some tags can be used without an end tag.

  6. 12-1 HTML andStatic Web Pages (cont.)

  7. 12-2 Web Applications • A web application is a client/server application that lives on a web server. • The client is the user’s machine with an Internet browser. • The web server is a machine that stores the web documents, including web pages and server scripts.

  8. Round Trips • Postback is when a user action occurs that requires server processing and the form is posted back to the server. • The web server processes the request and generates new HTML that is returned to the client browser. • This sequence of events is referred to as a round trip.

  9. Round Trip (cont.)

  10. 12-3 ASP.NET • ASP.NET is a platform for developing and running web applications on a web server. • ASP.NET web applications can be developed with a simple text editor or with the assistance of Visual Studio .NET. • Microsoft’s Internet Information Services (IIS) is a web server for use on Windows machines.

  11. 12-4 Visual Studioand Web Forms • Visual Studio provides the following tools: • Visual designers • Code-aware editors • Integrated compilation and debugging • Project management facilities for creating and managing application files

  12. 12-4 Visual Studioand Web Forms (cont.) • Visual Studio supports Web Forms to quickly and easily create the user interface for ASP.NET web applications. • A Web Form is composed of two files, the user interface form and the code-behind file. • Web Forms are similar to Windows forms in that they are event driven.

  13. 12-4 Visual Studioand Web Forms (cont.)

  14. ASP.NET Illustrated:Jake’s Problem • Begin by starting a New Project and selecting ASP.NET Web Application. • If Visual Studio is successfully able to communicate with the web server, then it will create a project on the server and open WebForm1.aspx for editing.

  15. ASP.NET Illustrated:Jake’s Problem (cont.)

  16. ASP.NET Illustrated:Jake’s Problem (cont.)

  17. ASP.NET Illustrated:Jake’s Problem (cont.) • The programming logic resides in a code-behind file with an .aspx.vb extension. • The logic written in the code-behind could have been written with any .NET language such as C#. • When the application is run Visual Studio launches Internet Explorer and connects to the ASPX page on the server.

  18. ASP.NET Illustrated:Jake’s Problem (cont.)

  19. ASP.NET Illustrated:Jake’s Problem (cont.)

  20. Chapter Summary • HTML stands for Hypertext Markup Language, a language for displaying text in a web browser such as Internet Explorer or Netscape Navigator. • Web applications are web sites that go beyond normal, static web sites by adding the ability to process code in response to user input.

  21. Chapter Summary (cont.) • Web applications are also client/server applications. • When a user action occurs that requires web server processing, the form must be posted back to the server. • ASP.NET is a platform for developing and running web applications on the web server.

  22. Chapter Summary (cont.) • Web Forms allow quick and easy creation of ASP.NET web applications. • Web Forms are similar to Windows Forms in that they are event driven.

  23. 12 Web Formsand ASP.NET Programming Right from the Start with Visual Basic .NET 1/e

More Related