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.

Slides:



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

Current Popular IT I Pertemuan 3 Matakuliah: T0403/Current Popular IT I Tahun: 2008.
The Web Warrior Guide to Web Design Technologies
11 ASP.NET Slides based off:. 22 B ACKGROUND - W EB A RCHITECTURE Web Server PC/Mac/Unix/... + Browser Client Server Request:
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
ASP.NET 2.0. What is ASP.NET is a server-side scripting language developed by Microsoft is the next generation of ASP (Active Server Pages), completely.
web controls  standard controls  validation controls  rich controls.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 1.1 of…
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…
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Introduction to ASP.Net ISYS 350. ASP.NET ASP.NET is a server-side technology for creating dynamic web pages. ASP.NET allows you to use a selection of.
ASP.NET Programming with C# and SQL Server First Edition
Web Forms. Agenda Web forms Web controls Code separation Dynamic compilation System.Web.UI.Page User controls.
Form Handling, Validation and Functions. Form Handling Forms are a graphical user interfaces (GUIs) that enables the interaction between users and servers.
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.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
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.
JavaScript & jQuery the missing manual Chapter 11
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Module 7: Validating User Input.
Chapter 3 Using Validation Controls. What is a Validation Control? A control that validates the value in another control Renders as an HTML tag with an.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
ASP.NET Dr. Ralph Westfall May, Web Development Problem HTML designed to display static pages only interactive when user clicks links  can’t provide.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
ASP.NET INTRODUCTION INTO وزارة التربية و التعليم العالي كلية العلوم و التكنولوجيا قسم علوم الحاسوب و تكنولوجيا المعلومات اعداد الاستاذ: عبد الله محمد.
Overview of Previous Lesson(s) Over View  Server controls are small building blocks of the graphical user interface, which includes  Text boxes  Buttons.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
ASP.Net Web Applications. Characteristics of a typical data driven web application Web Server HTML Graphics Active-X Java Applets HTTP Request ADO / JDBC.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 4-1 of…
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
ASP.NET Web Server Controls Basic Web Server Controls.
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
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.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
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.
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
CIS 375—Web App Dev II ASP.NET 7 Binding (based on w3schools.com— also see MSDN.NET developmentMSDN.NET development.
Introducing ASP.NET 2.0. Internet Technologies WWW Architecture Web Server Client Server Request Response Network HTTP TCP/IP PC/Mac/Unix + Browser (IE,
ASP.NET OPTIMIZATION. Why Optimize? $$$ Whether you build applications for customers or not, enhanced applications save money.
Module 4: Creating a Microsoft ASP.NET Web Form. Overview Creating Web Forms Using Server Controls.
Module 1: Working with ASP.NET. Overview Introducing ASP.NET Creating Web Forms Adding ASP.NET Code to a Page Handling Page Events Discussion: ASP vs.
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 (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,
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Application: Middle Tier Introducing Code-Behind Files, Session State.
ASP.NET 4 Unleashed Chapter 1. .aspx page: contains C# script and HTML code including tags. Listing 1.1 FirstPage.aspx.
BlackBerry Applications using Microsoft Visual Studio and Database Handling.
ASP.NET (Active Server Page) SNU OOPSLA Lab. October 2005.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
CIS 375—Web App Dev II ASP.NET 4 Server Controls.
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
Module 10: Data Access in ASP.NET. Overview Overview of the ASP.NET Data Access What is Data Access List of Data Source Control What is Data Bound How.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
Beginning ASP.NET in C# and VB Chapter 9
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.
Lecture 6 Sara Almudauh ASP.NET Part 1 Development of Internet Application 1501CT - Sara Almudauh.
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.
Haritha Dasari Josue Balandrano Coronel -
Unit 27 - Web Server Scripting
Moving from ASP to ASP.NET
Web Development Using ASP .NET
Module 05: Building ASP .NET Applications
Web Development Using ASP .NET
Presentation transcript:

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 on a server to build powerful Web applications.

3.NET Architecture

4 What is ASP.Net?  Next generation of ASP  New paradigm for server side scripting  Part of new.net framework

5 Why ASP.NET?  Easy Programming Model Avoids spaghetti code Great pages with far less code than ASP Easy display data Easy validating user input Easy uploading files Works in all browser ( including Netscape, Opera, AOL, and IE)

6 Why ASP.NET?  Flexible Language Options ASP support VBScript and Jscript ASP.NET supports 25.NET languages Includes built in support for VB.NET, C++, C#, and JScript.NET

7 Why ASP.NET?  Rich Class Framework.NET Framework offers over 4500 classes that encapsulates rich functionality like  XML, data access, file upload,  regular expressions, image generation,  performance monitoring and logging,  transactions, message queuing,  SMTP mail, and more

8 Why ASP.NET?  Improved performance & Scalability 3 to 5 times faster than ASP  Due to dynamic compilation Rich Output Caching  Eliminates the need to query the database on every request  improve performance of data-driven pages

9 Compatibility  Not fully compatible with ASP, however can run side by side with older versions.  Instead of.asp it uses.aspx extensions.

10 Syntax and Semantics  ASP.NET fully API-compatible with traditional ASP except Request() Request.QueryString() Request.Form()  ASP.NET returns string  ASP returns array of strings

11 For ASP.NET  Cnn.com/Test.aspx?value=45&valu e=600 would be accessed as follows:  <% ' Below line outputs: "45, 600" Response.Write(Request.QueryString("values"))  ' Below line outputs: "45" Response.Write(Request.QueryString.GetValues("value s")(0)) %>

12 Syntax & Semantics  ASP.NET pages support only a single language.  ASP.NET page functions must be declared in blocks unlike in ASP.

13 Syntax & Semantics  Page-render functions are not supported  Example IN ASP  <% Sub RenderSomething() %> Here is the time: <% RenderSomething RenderSomething %>

14 Syntax & Semantics  Example IN ASP.NET Sub RenderSomething() Response.Write(" ") Response.Write("Here is the time: " & Now) End Sub <% RenderSomething() RenderSomething() %>

15 Display Hello World in ASP.NET  Save the file as an.aspx extension Hello W3Schools! first aspx code to display "hello world"

16 Limitation of Classic ASP  Code has to be placed where the output apprears  Impossible to separate ASP code from HTML  Eg.  Hello W3Schools!

17 ASP.NET - Server Controls  The "spaghetti-code" problem solved with server controls.  Server controls are tags that are understood by the server.  Three kinds of server controls: HTML Server Controls - Traditional HTML tags Web Server Controls - New ASP.NET tags Validation Server Controls - For input validation

18 HTML Server Controls  HTML tags understood by server.  Comparable to JavaScript but run at server  Regular HTML elements are, by default, treated as text.  Add runat="server" to HTML elements to make it programmable and to be run at server.  must be within a tag  id attribute is added to identify the server control  They can be used at a run time.

19 Example of HTML Server Control  Sub Page_Load link1.HRef=" End Sub Visit W3Schools! anchor example

20 HTML Server Control contd… HTMLButton HTMLImage 2 HTMLInputbutton HTMLInputCheckbox HTMLInputHidden HTMLInputImage HTMLInputRadiobutton HTMLTable HTMLTextarea

21 ASP.NET - Web Server Controls  ASP.NET tags understood by the server  Like HTML Server Controls, require runat="server" to execute in server  Like HTML Server Controls, require id.  Does not map to HTML Elements.  More complex elements

22 ASP.NET - Web Server Controls contd… AdRotator Calendar CheckboxList DropdownList Hyperlink Image Label Listbox Literal Panel RadiobuttonList Table

23 ASP.NET - Validation Server Controls  Used to validate user-input  If invalid data, display an error message to the user  By default, page validation performed when Button, ImageButton, or LinkButton control is clicked  Prevent validation by changing CausesValidation property to false.

24 ASP.NET - Validation Server Controls contd…  CompareValidator CompareValidator  CustomValidator CustomValidator  RangeValidator RangeValidator  RegularExpressionValidator RegularExpressionValidator  RequiredFieldValidator RequiredFieldValidator  Validationsummary Validationsummary

25 ASP.NET - Events  An Event Handler is a subroutine that executes code for a given event.  Example of The page load eventThe page load event  Example of The Page.IsPostBack PropertyThe Page.IsPostBack Property

26 ASP.NET Web Forms  All server controls must appear within a tag  By default the page is submitted to itself.  If action is set then method=“post “ by default as in Classic ASP  An.aspx page can only contain ONE control!  Submitting a Form Example Self PostingSelf Posting

27 ASP.NET Data Binding  Data binding is used to fill lists with selectable items from an imported data source, like a database, an XML file, or a script.  Usually uses an imported source. the data is separated from the HTML any changes to the items are made in the separate data source.  The following controls support data binding asp:RadioButtonList asp:CheckBoxList asp:DropDownList asp:Listbox

28 Data Binding - ArrayList Object  The ArrayList object is a collection of items containing a single data value.  Example - ArrayList RadioButtonListArrayList RadioButtonList

29 Data Binding - The Hashtable Object  The Hashtable object contains items in key/value pairs.  Cannot sort items.  Example- Hashtable DropDownList Hashtable DropDownList  A Hashtable object may automatically generate the text and values to the following controls: asp:RadioButtonList asp:CheckBoxList asp:DropDownList asp:Listbox

30 Other Data Binding Controls  SortedList object It combines the features of both the ArrayList object and the Hashtable object.  XML Files We can bind a XML files to get data. Example of XML Data BindingExample of XML Data Binding  The Repeater It is used to display a repeated list of items that are bound to the control. May be bound to a database table, an XML file, or another list of items example of Repeaterexample of Repeater  The DataList Same as Repeater, except it adds a table around the data items by default. DataList DataList DataList

31 ASP.NET Database connection  To work with databases we need ADO.NET, which is a part of the.NET Framework and it is used to handle data access.  What is ADO.NET? part of the.NET Framework consists of a set of classes to handle data access is entirely based on XML unlike ADO, has no Recordset object  Example of : Database connection - Repeater control Database connection - Repeater control

32 Helpful Hints  Most of my work are from    and  Beginning ASP.NET 1.0 with Visual Basic.NET published by wrox Programmer to Programmer ISBN  Also to download this slides you can check at

33 Thank you  Open for questions or concerns