CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.

Slides:



Advertisements
Similar presentations
Tahir Nawaz Introduction to.NET Framework. .NET – What Is It? Software platform Language neutral In other words:.NET is not a language (Runtime and a.
Advertisements

Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
 Copyright Wipro Technologies JSP Ver 1.0 Page 1 Talent Transformation Java Server Pages.
11 ASP.NET Slides based off:. 22 B ACKGROUND - W EB A RCHITECTURE Web Server PC/Mac/Unix/... + Browser Client Server Request:
Languages for Dynamic Web Documents
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Razor. Slide 2 Remember this? Browser Web Server HTTP Request HTTP Response (Web page / code) Client code (script) Interpret request Generate HTML and.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Web-Based Applications
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
1 Classic ASP vs. ASP.NET Technical Information and Market Adoption Lance Welker University of San Diego Dr. Rebman MSIT 526 December 20, 2005.
DT228/3 Web Development JSP: Directives and Scripting elements.
ASP.NET Programming with C# and SQL Server First Edition
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
UNIT-V The MVC architecture and Struts Framework.
JavaServer Faces: The Fundamentals Compiled from Sun TechDays workshops (JSF Basics, Web-Tier Codecamp: JavaServer Faces, Java Studio Creator; IBM RAD)
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
9-1 aslkjdhfalskhjfgalsdkfhalskdhjfglaskdhjflaskdhjfglaksjdhflakshflaksdhjfglaksjhflaksjhf.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
1 Presented by Bikash Shrestha. 2 What is ASP.NET or ASP+? ASP.NET/ASP+ is a programming framework built on the common language runtime that can be used.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
© 2008 Dr. Paul Walcott – The University of the West Indies: Cave Hill CampusDr. Paul Walcott COMP6325 Advanced Web Technologies Dr. Paul Walcott The University.
ASP.Net Web Applications. Characteristics of a typical data driven web application Web Server HTML Graphics Active-X Java Applets HTTP Request ADO / JDBC.
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Introduction to ASP.NET 1www.tech.findforinfo.com.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Introduction to ASP.NET T.Ahlam Algharasi. The Visual Studio IDE Start page 2.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
What’s New for Web Developers in ASP.NET and Visual Studio 2008 Kate Gregory Microsoft Regional Director
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
Chapter 4: Working with ASP.NET Server Controls OUTLINE  What ASP.NET Server Controls are  How the ASP.NET run time processes the server controls on.
Christopher M. Pascucci.NET Programming CodeBehind.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
ASP.NET in Definition: 1.ASP.NET is a web application framework developed and marketed by Microsoft to allow programmers to build dynamic web sites,
CIS 375—Web App Dev II ASP.NET 3 Working With Server Controls.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
CIS 375—Web App Dev II ASP.NET 4 Server Controls.
CIS 375—Web App Dev II ASP.NET 1 Getting Started.
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
ASP.NET 2.0 Mohammed Abdelhadi Developer.NET Evangelist Microsoft Corporation.
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Web Application Web Application are programs that can be executed either on a Web server or in a Web browser. An Online store accessed through a browser.
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Web Development Using ASP .NET
JavaServer Faces: The Fundamentals
Web Development Using ASP .NET
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Introduction to ASP.NET Parts 1 & 2
Presentation transcript:

CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms

2 What is ASP.NET Web Forms? The ASP.NET Web Forms page framework is a scalable common language runtime programming model that can be used on the server to dynamically generate Web pages. The ASP.NET Web Forms framework provides: The ability to create and use reusable UI controls that can encapsulate common functionality and thus reduce the amount of code that a page developer has to write. The ability for developers to cleanly structure their page logic in an orderly fashion (not "spaghetti code"). The ability for development tools to provide strong WYSIWYG design support for pages (existing ASP code is opaque to tools).

3 Writing Your First Web Forms Page ASP.NET Web Forms pages are text files with an ______ file name extension. An ASP.NET page can be created by taking an existing HTML file and changing its file name extension to.aspx. VB Intro1.aspx [Run Sample] | [View Source]Run SampleView Source.aspx

4 Using ASP Render Blocks ASP.NET provides syntax compatibility with existing ASP pages including support for _________ code render blocks. VB Intro2.aspx [Run Sample] | [View Source]Run SampleView Source Important: Unlike with ASP, the code used within the above blocks is actually compiled--not ___________ using a script engine, resulting in improved performance. ASP.NET page developers can utilize code blocks to dynamically modify HTML output much as they can today with ASP. VB Intro3.aspx [Run Sample] | [View Source]Run SampleView Source interpreted

5 Introduction to ASP.NET Server Controls Instead of using code blocks to program dynamic content, ASP.NET page developers can use ASP.NET server controls to program Web pages. Server controls are declared within an.aspx file using custom tags or intrinsic HTML tags that contain a runat=“_______" attribute value. VB Intro4.aspx [Run Sample] | [View Source] | [ads.xml]Run SampleView Sourceads.xml Note also that no _______-side script is required. ASP.NET enables developers to utilize richer custom controls on their pages, such as the control. (see Server Controls)Server Controls VB Intro5.aspx [Run Sample] | [View Source]Run SampleView Source server client

6 Handling Server Control Events Each ASP.NET server control is capable of exposing an _______ model containing properties, methods, and events. ASP.NET developers can use this object model to cleanly modify and interact with the page. VB Intro6.aspx [Run Sample] | [View Source]Run SampleView Source This simple sample is functionally equivalent to the "Intro3" sample demonstrated earlier in this section. Note, however, how much cleaner and easier the code is in this new server-control-based version. object

7 Using Custom Server Controls ASP.NET ships with ____ built-in server controls that can be used out of the box. See Web Forms Controls ReferenceWeb Forms Controls Reference Developers also can use controls developed by ______-party vendors. The following sample shows a simple calendar control. VB Intro7.aspx [Run Sample] | [View Source] | [Acme.vb]Run SampleView SourceAcme.vb This Calendar control performs "uplevel-like" processing on IE 5.5 (doesn’t require round trips back to the server when doing calendar navigation) and "downlevel" processing on all other browsers. 45 third

8 Lists, Data, and Data Binding ASP.NET has a built-in set of data _____ and list controls for UI driven from queries against a __________ or other data source. The following demonstrates how to use the control. VB Intro8.aspx [Run Sample] | [View Source]Run SampleView Source The control enables end users to exactly control the structure and layout of each item within the list (using the ItemTemplate template property). VB Intro10.aspx [Run Sample] | [View Source]Run SampleView Source grid database

9 Form Validation Controls 1 ASP.NET provides a set of ___________ server controls to check input forms for errors, and display messages to the user. There are controls for specific types of validation, such as _______ checking or pattern matching, plus a RequiredFieldValidator. The following demonstrates how to use two controls. VB Intro11.aspx [Run Sample] | [View Source]Run SampleView Source validation range

10 Form Validation Controls 2 Validation controls have both ________ (validation on the client and on the server) and downlevel client support (only on the server). ASP.NET page developers can check the Page.IsValid property at run time to determine whether all validation server controls on a page are currently valid. This provides a simple way to determine whether or not to proceed with business _______. VB Intro12.aspx [Run Sample] | [View Source]Run SampleView Source uplevel logic

11 Code-Behind Web Forms ASP.NET supports two methods of authoring dynamic pages. The first is the method shown in the preceding samples, where the page code is physically declared within the originating ______ file. An alternative approach--known as the code-behind method--enables the page code to be more cleanly separated from the HTML content into an entirely separate file. VB Intro13.aspx [Run Sample] | [View Source] | [Intro13.vb ]Run SampleView SourceIntro13.vb.aspx

12 Summary 1. ASP.NET _____ Forms provide an easy and powerful way to build dynamic Web UI. 2. ASP.NET Web Forms pages can target any ________ client (there are no script library or cookie requirements). 3. ASP.NET Web Forms pages provide syntax compatibility with existing _____ pages. 4. ASP.NET _______ controls provide an easy way to encapsulate common functionality. 5. ASP.NET ships with ___ built-in server controls. Developers can also use controls built by third parties. 6. ASP.NET server controls can automatically project both uplevel and ___________ HTML. 7. ASP.NET _________ provide an easy way to customize the look and feel of list server controls. 8. ASP.NET __________ controls provide an easy way to do declarative client or server data validation. Web browser ASP server 45 downlevel templates validation