ASP.NET.. ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy.

Slides:



Advertisements
Similar presentations
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Advertisements

Java Script Session1 INTRODUCTION.
11 Getting Started with ASP.NET Beginning ASP.NET 4.0 in C# 2010 Chapters 5 and 6.
The Web Warrior Guide to Web Design Technologies
Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
ASP.NET Programming with C# and SQL Server First Edition
1 Chapter 1 Tour of Access. 1 Chapter Objectives Start and exit Microsoft Access Open and run an Access application Identify the major elements of the.
1 Chapter 20 — Creating Web Projects Microsoft Visual Basic.NET, Introduction to Programming.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Beginning Active Server Pages Barry Sosinsky Valda Hilley Programming.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
INTRODUCTION TO WEB DATABASE PROGRAMMING
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.
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
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.
Object-Oriented Application Development Using VB.NET 1 Chapter 12 Web Forms, HTML, and ASP.NET.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
Chapter 6: Forms JavaScript - Introductory. Previewing the Product Registration Form.
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Chapter 16 The World Wide Web. 2 The Web An infrastructure of information combined and the network software used to access it Web page A document that.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
XHTML Introductory1 Linking and Publishing Basic Web Pages Chapter 3.
ASP.Net Web Applications. Characteristics of a typical data driven web application Web Server HTML Graphics Active-X Java Applets HTTP Request ADO / JDBC.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
JSP Java Server Pages Softsmith Infotech.
ASP.NET Web Server Controls Basic Web Server Controls.
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
JAVA SERVER PAGES. 2 SERVLETS The purpose of a servlet is to create a Web page in response to a client request Servlets are written in Java, with a little.
Tutorial 10 Programming with JavaScript
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
JavaScript - A Web Script Language Fred Durao
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
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.
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,
ASP. What is ASP? ASP stands for Active Server Pages ASP is a Microsoft Technology ASP is a program that runs inside IIS IIS stands for Internet Information.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
Overview of Previous Lesson(s) Over View  ASP is a technology that enables scripts in web pages to be executed by an Internet server.  ASP.NET is a.
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
ASP.NET Part I Dr. Awad Khalil Computer Science Department AUC.
Web Programming Java Script-Introduction. What is Javascript? JavaScript is a scripting language using for the Web. JavaScript is a programming language.
1 Introducing Web Developer Tools Rapid application development tools ASP.NET-compatible web editors –Visual Studio.NET Professional Edition –Visual Studio.
XP Creating Web Pages with Microsoft Office
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Section 10.1 Define scripting
Introduction to Visual Basic 2008 Programming
Florida Gulf Coast University
Chapter 23 – ASP.NET Outline 23.1 Introduction NET Overview
Web Development Using ASP .NET
Module 05: Building ASP .NET Applications
Web Development Using ASP .NET
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
Presentation transcript:

ASP.NET.

ASP.NET Environment ASP.NET is Microsoft's programming framework that enables the development of Web applications and services. It is an easy and scalable way to build, deploy, and run Web applications that can target any browser or device. ASP.NET pages work in all browsers -- Navigator, Opera, AOL, Internet Explorer, and others.

ASP.NET Environment Many of the functionalites take place in the background, their details hidden from view of, and usually hidden from concern by, the programmer. ASP.NET has a rich set of objects to work with in an object-oriented and compiled programming environment.

ASP.NET Environment The programming environment supports more than 25.NET languages, including built-in support for VB.NET, C#, and JScript.NET..NET Framework offers over 4500 software classes that encapsulate rich functionality like XML, data access, file upload, regular expressions, image generation, performance monitoring and logging, transactions, SMTP mail, and much more.

ASP.NET Environment These classes provide an extensive set of objects, properties, and methods accessible through Visual Basic for enhancing your Web applications. Though code is compiled, ASP.NET automatically detects any code changes, dynamically compiles the files if needed, and stores the compiled results for reuse in subsequent requests.

ASP.NET Environment Dynamic compilation ensures that applications are up to date, and compiled execution makes them fast. There is a short delay when a page is first accessed and compiled. Subsequent accesses, though, retrieve the compiled, cached version of the page for immediate execution.

ASP.NET Environment The ASP.NET framework is backward compatible. It runs classic ASP pages just as before, permitting integration of new capabilities as they are learned. ASP.NET pages have a new file extension,.aspx, to differentiate them from standard ASP pages. When this new extension is detected, the ASP.NET processor handles the page request.

ASP.NET Environment User interaction under ASP.NET, is through a Web browser. New Web Form controls in ASP.NET replace many of the standard HTML tags.

ASP.NET Page Structure ASP.NET pages are transmitted to the Web server in order to process data and generate information. Normally, this request is triggered by some user action on the local PC. For instance, the user enters data into a form and then clicks a button. The button click causes the form to be transmitted to the server where processing routines massage the data and produce output. Output usually is embedded on the Web page prior to its return to the user.

ASP.NET Page Structure Web page processing takes place on the server. Data are collected on the local PC, shipped to the server for processing, with results returned to the local PC as a reformulated or reformatted page displaying processing results.

ASP.NET Page Structure

Web Application C# Welcome to ASP.NET! To learn more about ASP.NET visit You can also find documentation on ASP.NET at MSDN.

ASP.NET Page Structure The SCRIPT portion of the page, normally coded at the top of the page, contains server code to process data. That data can be supplied by the user through a form, extracted from files or databases, and/or generated internally by the script. The script contains processing commands, or statements which are encapsulated within named subroutines, or subprograms, that are called upon to perform their processing.

ASP.NET Page Structure The HTML portion of the page serves two functions. It captures input data for transmission to the server, and it displays output results from server processing. These two functions take place through Web Forms containing various server controls, special form elements that permit data input, output display, and requests for script processing.

ASP.NET Page Structure Together, Web Forms and server scripts encapsulate on a single page all the functionality needed to turn Web pages into full-featured information processors. It is common for ASP.NET pages to supply three types of HTML form controls to effect information processing.

ASP.NET Page Structure A "data input control" is needed to supply data for processing A "script activation control" is needed to call upon scripts to process the data An "output control" is required to identify an area on the page where script output can appear.

ASP.NET Ex1.aspx

ASP.NET Ex1.aspx A textbox control accepts input data from the user, a button calls a script to process the data, and an output control provides the target area for script output.

ASP.NET Ex1.aspx In this case the subprogram simply takes the value entered into the TextBox and writes it, along with other enclosing strings of text, to the Label control. Note that the script, the controls, and their enclosing tag contain the attribute runat="server". This specification indicates that all of these page elements participate in script processing on the server.

ASP.NET Ex1.aspx In this example an control supplies the input box. An control calls a script subroutine named Display_Output when clicked. An control serves as an area on the page to which the script writes its output. Both the TextBox and Label controls are given id values so that the script can refer to them when performing its processing.

ASP.NET Ex1.aspx protected void Display_Output(object sender, EventArgs e) { MyOutput.Text = "Welcome, " + MyInput.Text; MyInput.Visible=false; Button1.Visible=false; }

ASP.NET Ex1.aspx The script appearing at the top of the page contains the subroutine named Display_Output. The associated list of arguments contained within parentheses (object sender, EventArgs e) are references to the particular server control which calls the subroutine -- the button in this case.

ASP.NET Ex1.aspx “Object sender” parameter is a reference to the source of the subroutine call -- the button itself; the e (EventArgs) parameter is a pointer to any data values associated with the button -- none in this example. These are standard arguments that must be supplied when a button calls a subprogram.

ASP.NET Ex1.aspx The button click triggers a form submission which transmits the controls and their values to the Web server. At the same time, a URL request is made of the server to retrieve a new copy of this same Web page from its storage directory on the server and to make available to this page the transmitted values. The button click also indicates that when the page is retrieved the subprogram named Display_Output is to be run.

ASP.NET Ex1.aspx This subprogram copies the transmitted data from the Textbox into the Label area, embedding it within the other text and HTML on the page. Following script processing this reformulated page is returned from the server to your PC, with your name appearing on the page.

ASP.NET Ex2.aspx Ex1.aspx can be changed to hide the textbox and button after user clicks the button. We will use “visible” property of the object and set it to “false” in order to hide it. “id” will be used as object name. If “id” is “MyInput” then property can be set as: – MyInput.visible=false