ASP Hello, world. ServerClient Response Request A form.

Slides:



Advertisements
Similar presentations
Unit 02. ASP.NET Introduction HTML & Server controls Postbacks Page Lifecycle.
Advertisements

1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
23-Aug-14 HTML/XHTML Forms. 2 What are forms? is just another kind of XHTML/HTML tag Forms are used to create (rather primitive) GUIs on Web pages Usually.
24-Aug-14 HTML Forms. 2 What are forms? is just another kind of HTML tag HTML forms are used to create (rather primitive) GUIs on Web pages Usually the.
Forms cs105. More Interactive web-pages So far what we have seen was to present the information. (Ex: tables. Lists,….). But it is not enough. We want.
Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 3-1 of…
Chapter 1: An Introduction To ASP.NET Web Programming
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Server-Side Scripting with ASP.Net ISYS 546. ASP.NET ASP.NET is a server-side technology for creating dynamic web pages. ASP.NET allows you to use a selection.
Introduction to ASP.NET
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.
IT 533 Lecture Notes Gül ş en Demiröz Introduction to Web Programming using ASP.NET.
11 ASP.NET Controls Beginning ASP.NET 4.0 in C# 2010 Chapter 6.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College Lecture 8: WebForms — Web-based.
Chapter 9 Working with Forms. Principles of Web Design 2nd Ed. Chapter 9 2 Principles of Web Design Chapter 9 Objectives Understand how forms work Understand.
ASP.Net, Web Forms and Web Controls 1 Outline Introduction Simple HTTP Transaction System Architecture Creating and Running a Simple Web Form Example Web.
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.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
JavaScript & jQuery the missing manual Chapter 11
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
HTML, GUI, ASP.NET Rina Zviel-Girshin Lecture 2
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
Beginning Web Site Development Module 1 – Dynamic Web Site Development Fundamentals of building dynamic Web sites with ASP.NET 2.0 and C# Version.
Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital Media.
INSPIRING CREATIVE AND INNOVATIVE MINDS Module 4: Adding Code to a Microsoft ASP.NET Web Form Implementing Code-Behind Pages Adding Event Procedures to.
ASP.NET Web Server Controls Basic Web Server Controls.
Web Controls Chapter-7. Page  2 Synopsis  Stepping Up to Web controls  Basic Web control classes  Web control classes  Web control Base class  Units,
© Minder Chen, ASP.NET 2.0: Introduction - 1 ASP.NET 2.0 Minder Chen, Ph.D. Framework Base Class Library ADO.NET: Data & XML.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Internet Technologies and Web Application Web Services With ASP.NET Tutorial: Introduction to.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Unit 3: Adding Code to a Microsoft ASP.NET Web Form.
Global.asax file. Agenda What is Global.asax file How to add the Global.asax file What are the default events available Explanation to Application_Level.
Dynamic Dropdown Lists 1. Objectives You will be able to Use Dropdown Lists to solicit multiple choice user input in an ASPX web page. Populate a Dropdown.
Building Applications using ASP.NET and C# / Session 15 / 1 of 17 Sessio n 15.
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.
Intro to Forms  HTML forms are used to gather information from end-users.  A form can contain elements like radio- buttons, text fields, checkboxes,
Form Components and Elements
Christopher M. Pascucci.NET Programming: WebForm Events.
Module 4: Creating a Web Application with Web Forms
Building Applications using ASP.NET and C# / Session 5 / 1 of 19 Session 5.
MIS 3200 – Unit 3.2 Page_Load method AutoPostBack property of controls IsPostBack method of the Page object Understanding web page life cycle.
Asp.NET Core Server Controls. Slide 2 Lecture Overview Understanding the types of ASP.NET controls HTML controls ASP.NET (Web) controls.
CIS 375—Web App Dev II ASP.NET 4 Server Controls.
January 27, 2001ASP Basics1 Active Server Pages (ASP) Basics The client/server model Objects Forms Active Server Pages VBScript Lab and Homework.
CIS 375—Web App Dev II ASP.NET 5 Events. 2 The Page_Load Event The Page_Load event is triggered when a page loads. [Example]Example Sub Page_Load lbl1.Text="The.
ASP + JavaScript Client and Server scripts. Link 1 function MyClick(){ document.write("MyClick"); } function MyFunction1(){ alert("My Function 1"); }
1111 Creating ASPX Controls Programatically Objectives You will be able to Dynamically add controls to a page. Dynamically alter properties of controls.
Document Object Model Nasrullah. DOM When a page is loaded,browser creates a Document Object Model of the Page.
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.
Internet & World Wide Web How to Program, 5/e Copyright © Pearson, Inc All Rights Reserved.
HTML FORM. Form HTML Forms are used to select different kinds of user input. HTML forms are used to pass data to a server. A form can contain input elements.
HTML Structure II (Form) WEEK 2.2. Contents Table Form.
Week-11 (Lecture-1) Introduction to HTML programming: A web based markup language for web. Ex.
FORMS Explained By: Jasdeep Kaur. Lecturer, Department of Computer Application, PGG.C.G., Sector: 42, Chandigarh.
CSCI 6962: Server-side Desig n and Programming ASP Server Controls.
ASP.NET Part 2 Instructor: Charles Moen CSCI/CINF 4230.
Computing with C# and the .NET Framework
Allowing File Uploads.
Web Forms, HTML, and ASP.NET
© 2015, Mike Murach & Associates, Inc.
Module 10: Creating a Web Application with Web Forms
Static and Dynamic Web Pages
ASP.NET.
Web Development Using ASP .NET
Events: Changed and Input
5/6/2019 Session 8.2 Postback, ViewState
Allowing File Uploads.
Presentation transcript:

ASP Hello, world

ServerClient Response Request

A form

System.Web.UI.Page void SubmitBtn_Click(Object sender, EventArgs e) { Message.Text = "The text is " + Name.Text; }

LIST void SubmitBtn_Click(Object sender, EventArgs e) { Message.Text = "The text is " + Key.SelectedItem; }

IF void SubmitBtn_Click(Object sender, EventArgs e) { if (Key.SelectedValue == "2000") { Message.Text = "two thousand"; } else { Message.Text = "another number"; } }

Case Switch(x) { Case 1: y=1; break; Case 2: y=2; break; default: y=0; break; }

Cycles While (x<10){ } Do { } while (x<10) For

Web forms vs Windows forms vs Example private void MyFunction() { Response.Write("I work "); }

Sending user data to the server All the data on button click Piece by piece (for each interface element) Example: void ch(Object sender, EventArgs e) { Response.Write("I work "); }

Using buttons void WBC(Object sender, EventArgs e) { Response.Write("Button clicked"); }

Defining HTML Events (not good style) void HTML(Object sender, EventArgs e) { Response.Write("I am HTML event"); }

assignment ! CheckBox, Radio Button, RadioButtonList

Table void ok(Object sender, EventArgs e) { table1.Border = 4; table1.BorderColor = "Red"; table1.Height = "100%"; } 1 2

Page_Init and page_Load void Page_Load(Object sender, EventArgs e) { Response.Write("I am loading "); } Write similar for Page_Init and Page_Unload

If the pages loads for the first time? (needs several pages) void Page_Load(Object sender, EventArgs e) { If (Page.IsPostBack==false) { Response.Write("I am loading "); } else Response.Write(“2 nd time”); }