Introduction to ASP.NET and Web Forms
[Pages:47]Agenda
Overview Programming Basics Server Controls
Overview
public void B_Click (object sender, System.EventArgs e) {
Label1.Text = "Hello, the time is " + DateTime.Now; }
Programming Model
Postbacks
A postback occurs when a page generates an HTML form whose values are sent back (via HTTP Post or Get) to the same page
A common technique for handling form data In ASP and other server-side technologies the
state of the page is lost upon postback... Unless you explicitly write code to maintain state This is tedious, bulky and error-prone
Programming Model
Postbacks Maintain State
By default, maintains the state of all server-side controls during a postback
Can use method="post" or method="get" Server-side control objects are automatically
populated during postback No state stored on server Works with all browsers
Programming Model
Code-behind pages
Two styles of creating pages
Controls and code in .aspx file Controls in .aspx file, code in code-behind page
z Supported in Visual
Code-behind pages allow you to separate the user interface design from the code
Allows programmers and designers to work independently
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- introduction to finance and accounting
- introduction to leadership and management
- how to cite introduction to sociology 2e
- introduction to java programming and data structures
- introduction to language and linguistics
- introduction to leadership and governance
- introduction to philosophy and logic
- introduction to positive and negative numbers
- introduction to leadership concepts and practice
- best email and web hosting
- introduction to food and beverage service
- introduction to probability and mathematical statistics pdf