MIS120 FINAL
A Web form can be identified by its ... filename extension
.aspx
Displaying a webpage steps
A computer must be running a Web server, which waits for browser connection requests, this occurs in two steps: Browser connects to server requesting a URL Server translates URL into a physical file located within the server's file system and sends the requested file, called a Web page, back to the browser Server breaks connection after sending Web page Web Browser interprets HTML and renders a Web page Postback occurs if client requests Web page again By clicking a button control or pressing the Enter key
ASP.NET web pages are called .... ...
A web form Also Uses a file name extension of .aspx Contains text, HTML tags, and HTML controls Also contains Web server controls such as text boxes, list boxes, and buttons Also known as ASP.NET Server controls Similar to Windows Forms controls
...provides several Web controls for displaying and updating a database from a Web application.
ASP.NET
Datasource control - One control is named... , for MS Access databases. The other is named ...., for SQL Server databases.
AccessDataSource SqlDataSource
AutoPostBack defaults to False for the following controls: ...
CheckBox, CheckBoxList, DropDownList, ListBox, ListControl, RadioButton, RadioButtonList, and TextBox.
The ....control looks like a group of check boxes, but works just like a ListBox.
CheckBoxList
When the user hovers the mouse over the image, the mouse cursor changes shape. When the user clicks the image, a ...event is generated.
Click
ASP contains...
Contains Web forms and controls, HTML, and program logic in compiled VB code
Web applications use a specialized type of ASP.NET control for accessing databases, generally called a ...control.
DataSource
The ...control makes it easy to view, edit, delete, or add rows to a database table. To use it, you must create a data source, as you did in Tutorial 11-5.
DetailsView
The ...control lets the user select a single item from a list. There are two noticeable differences between the ...and its Windows Forms counterpart, the ComboBox. First, in a ...., the initial value of SelectedIndex is always 0, causing the first item to display when the form is loaded. Second, users cannot enter an arbitrary string into the DropDownList, as they can in a ComboBox.
DropDownList
The ...control offers the ideal way to display a complete table. Similar to the Windows control named DataGridView, it lets you sort on any column, select the column order, and format the data within columns.
GridView
.... can be used to design a Web application's user interface. ....provide a convenient way to align the elements of a Web form.
HTML tables
The ...control provides a simple, easy way to add a link to your page that lets users navigate from the current page to another page. Appears as underlined text
HyperLink
Button type controls
Hyperlink control - no click event/navigates to another url linkbutton control-linkbutton click event generated imagebutton - imagebutton click event generated button click - event generated
Web pages typically use clickable images as navigation tools. You can create the same effect with the ...control.
ImageButton
The ..control looks and behaves much like a HyperLink control, with one major difference: it generates a Click event.
LinkButton
A... runs under a Windows operating system utility named Internet Information Services (IIS).
Local IIS Web site
The ...property lets you limit the number of characters the user is permitted to type.
MaxLength
In Visual Studio, you select ...from the File menu when you want to open an existing Web application.
Open Web Site
The ... control displays a group of radio buttons
RadioButtonList
You can create individual RadioButton controls, but the ...is easier to use. Similar to a ListBox, it has SelectedIndex, SelectedItem, and SelectedValue properties.
RadioButtonList
A ... is also a web site located across a network, with a special requirement: It must be configured with Microsoft FrontPage Extensions.
Remote Site
You can arrange the buttons horizontally or vertically, using the ...property.
RepeatDirection
A ... automatically exists in every Web page. It is an instance of the HttpResponse class.
Response object
In your program code, you can tell the browser to navigate to another page in your application, or any other page on the Web by calling the....method
Response.Redirect
Each Web page in your application is designed using a Web form in Visual Studio. There are two ways to add a new Web form to a project:
Select Add New Item from the Website menu • Right-click the name of the project in the Solution Explorer, select Add, then select Add New Item
You can use a ....event handler to respond to selections by the user in any list-type control. There is one important consideration, however: the AutoPostBack property must be set to True if you want the user's selection to be detected immediately.
SelectedIndexChanged
You can use the ..property to determine whether users can select only a single item or multiple items from a ListBox
SelectionMode
Selectionmode The two possible choices are Single and Multiple.
The two possible choices are Single and Multiple. In Multiple mode, the user can hold down the ∏ key to select multiple individual items or hold down the s key to select a range of items.
When you set AutoPostBack to ... for a list-type control, users experience a short delay each time they click on the list.
True
In many ways, the... control is similar to the Windows forms ListBox control. It has an Items collection and a SelectedIndexChanged event. You can retrieve the following properties at runtime:
Web ListBox
Each Web page in your application is designed using a .... in Visual Studio.
Web form
If the target page is on another Web server, we must supply....
a fully formed URL as follows: Response.Redirect("http://microsoft.com")
The Program logic for a Web form is stored in ....
a related code-behind file with extension aspx.vb
ASP.NET ,the next generation, is ....side Web programming platform
a server-
HTML stands for HyperText Markup Language: Describes ... A standardized.... It is not a...
appearance of web pages formatting language programming language <b>This text is bold.</b>This text is normal.
Web applications are designed around a .....l: a server produces data consumed by another entity called a client. Web applications must be run using a Web server.
client-server mode
One important characteristic of the DataSource controls is that they....
directly update the database, with no separate Update method call required
Then, a URL is followed by a...
domain name(micrsoft.com)
If the height of a row seems to change when you switch from Design view to Run mode, ....
drag the bottom of the row with the mouse. This causes a specific row height to be encoded in the Style property of each cell in the row.
To adjust the width of a column,.....
hover the mouse over the double bar along the column's right border.
An HTML table is an essential tool for designing the ..... You can use it to align text, graphics, and controls in rows and columns.
layout of Web forms.
A Web application may use ...Web pages to display data and interact with the user.
multiple
Using Visual Studio, you can create a Web site in the l.....
ocal File System, Local or remote Web server, or remote FTP site.
Most Web applications do not ....to the server every time users select from list-type controls. Instead, the sites use button controls to post all selections on the page back to the server at the same time.
post back
VB code runs on the ...., not the ....
server client Server runs code that creates an HTML page Client web browser receives the HTML
In the Design view, the GridView has a small arrow in its upper right corner called a .... as shown in Figure 11-43. When you click on this ..., the GridView Tasks menu pops up, as shown in Figure 11-44. You can use it to set various grid properties and connect to a data source.
smart tag,
If you set the Border property to an integer value greater than zero, .....
the table borders appear at runtime.
The URL is used as an address that uniquely identifies ....
the web page to be retrieved
There are three common things you can do that will let a program move from a Web page we will call the source page to another Web page we will call the target page:
• Place the URL of the target page in the NavigateURL property of a HyperLink control. We discussed the HyperLink control in Section 11.3. • Write code in the Click event handler of a Button, ImageButton, or LinkButton control. In a moment, we will show how to call the Response.Redirect method. • Convert a block of static text to a hyperlink. Select a block of text with the mouse, click the Convert to Hyperlink button on the formatting toolbar (as shown in Figure 11-40), and enter the URL of the target page. Optionally, you can click the Browse button to locate a file within your project, as shown in Figure 11-41.
There are two ways to insert a table when the Design view of a form is active:
• Select Insert Table from the Table menu. When you do so, the Insert Table dialog box appears, letting you set various table layout options (see Figure 11-32). • Select the Table control from the HTML section of the Toolbox window. A basic 3 × 3 table is placed on the form, which you can resize by dragging the handles along its right and bottom sides. A sample is shown in Figure 11-33
Web ListBox control is similar to the Windows forms ListBox control. It has an Items collection and a SelectedIndexChanged event. You can retrieve the following properties at runtime:
• SelectedIndex: returns the index of the selected item • SelectedItem: returns the currently selected item, a ListItem object • SelectedValue: returns the contents of the selected item's Value property
The HyperLink control does not generate any events, but it has three important properties as follows:
• The Text property contains the text shown to the user at runtime. • The NavigateURL property contains the location of the Web page you would like the program to display when the user clicks the link. The property editor has a Browse button you can use to locate Web pages within your project. • The Target property controls whether the new page will appear in the current browser window (the default) or in a separate window. To open in a separate browser window, set Target equal to _blank.
An .. is a web site located on a different machine, usually on the Internet.
FTP Site
... is the Microsoft platform for Web development.
ASP.NET
A specially defined domain name for your local computer is called . ...
localhost
The Web.config file contains ...
necessary configuration data for the Web site.
Web forms behave like documents, similar to Microsoft Word. In Windows forms, labels are..
needed for all text displayed on forms; but Web forms do not need labels for that type of text.
If you select HTTP, your Web application will be located in/on..
on a Web site set up by Internet Information Services (IIS).
Visual Basic code can be stored in a separate file from a ..., making it easier for you to code and maintain program logic.
page's text and HTML
ASP.net is called a...because it provides development tools, code libraries, and visual controls for browser-based applications.
platform
This action, callled a ..., occurs when the server processes the page contents and resends the modified page to the browser. The processing might involve updating controls and executing functions in the application's compiled code.
postback
The source code for a Web form is usually stored in a related file called a code-behind file, with the filename extension aspx.vb. This part of the application is called the ...
program logic.
A URL always starts with a
protocol, such as http://, https://, or ftp://.
A...is typically available through an Internet Service Provider (ISP) or a corporate Web server. You can copy your application to a remote Web server before running it. You must always have a username and password to publish on a remote server.
remote Web server
HTML uses special sequences of characters called ...to embed commands inside the text appearing on a Web page. For example, the following line instructs the browser to display "This text is in bold." in bold type.
tags
In a Web form, the Page_Load event occurs when ...
the page is first loaded into the user's browser, and again every time the page is posted back to the server.
A ... is the universal way of addressing objects and pages on a network.
URL (Uniform Resource Locator)
(TYPE OF CONTROL)• : Controls for validating user input into controls such as text boxes.
Validation
The controls are powerful because each is defined by a class with a rich set of properties, methods, and events. The controls look and feel like Windows Forms controls, making them easy for Visual Basic programmers to learn. We often refer to Web server controls simply as ...
Web controls.
The... is almost identical to the Label control on Windows forms.
Web Label control
... are similar to controls used in Windows applications. You use ... to make ASP.NET Web applications interactive.
Web Server control
A... runs on a Web server and presents its content to the user across a network, in a Web browser.
Web application
A ... which can be identified by its .aspx filename extension, contains text, HTML tags,HTML controls (such as buttons and text boxes), and special interactive controls called Web server controls.
Web form,
Web applications written in ASP.NET use special Web pages called ...
Web forms.
The server reads the requested file, called a...
Web page.
A program called a ...runs on the computer hosting the Web site. Web browsers, such as Internet Explorer, Safari, or Netscape, display data encoded in HTML.
Web server
Web applications must be run using a .... You have three choices
Web server
... make ASP.NET applications dynamic and interactive.
Web server controls
ASP.NET applications are also known as ...
Web sites or Web applications.
contains information about the runtime environment.
Web.config
Configuration information can be stored in two files. One file, ..., contains information about the runtime environment. Another file, ..., is a Cascading Style Sheet (CSS) file containing HTML styles for customizing the appearance of Web forms.
Web.config Styles.css
When an empty Web site is created, it contains only one file, named....
Web.config.
(TYPE OF CONTROL) : Controls that let a Web site's users modify the content, appearance, and behavior of Web pages directly from a browser.
WebParts
In prepration for displaying a web page
a computer must be running a Web server
You must always have... to publish on a remote server.
a username and password
To make it easier to adapt to different browsers, the Web server automatically detects the ...and makes the information available to ASP.NET programs.
browser type
After a Web page is displayed, the user may click a ...or press e, causing the page contents to be sent back to the Web server.
button control
The following Web controls are the ones you are likely to use often. Except where noted by an asterisk (*), all have counterparts among the controls used on Windows forms.
• Button • CheckBoxList* • ImageButton • ListBox • LinkButton • DropDownList (similar to • TextBox ComboBox control) • Label • Image (similar to PictureBox control) • RadioButton • Calendar* • RadioButtonList* • HyperLink*
Web applications written for ASP.NET consist of the following parts:
• Content: Web forms, HTML code, Web forms controls, images, and other multimedia • Program logic, in compiled Visual Basic (or C#) code • Configuration information
The TextMode property has the following choices:
• SingleLine: permits the user to enter only a single line of input • MultiLine: permits the user to enter multiple lines of input • Password: characters typed by the user appear as asterisks
To run a Web application project you have two choices:
• Start without debugging: Press ∏+% to run the Web application without being able to use debugging tools such as single-stepping, stepping into, stepping over, and so on. This is the way that we run all of the Web application projects in this book. • Start with debugging: Press % to run the Web application with the ability to use the debugging tools. (Alternatively you can click DEBUG on the Visual Studio menu, and then select Start Debugging.) When you do this, you will see the window shown in Figure 11-7. Before you can use the debugging tools in a Web application, Visual Studio must modify the application's Web.config file. To continue running the Web application with debugging enabled, select Modify the Web.config file to enable debugging, then click OK. (If you decide at this point that you do not want to use the debugging tools, you can select Run without debugging and click OK.)
... is installed automatically with Visual Studio. It is easy to use and requires no special security setup.
• The ASP.NET Development Server (also known as IIS Express)
The ..control is almost identical to the checkbox in Windows forms applications.
CheckBox
To be as compatible as possible with all Web browsers, you should use the ...to control the width of the text box.
Columns property
(TYPE OF CONTROL): Controls for connecting to data sources; displaying database and XML data in grids and lists.
Data
When we add the Default.aspx Web form to the project, another file named ... is automatically created.
Default.aspx.vb
The HTML designer offers the following views of a Web page:
Design view: You can visually edit Web pages, using the mouse to drag controls and table borders. This view most closely resembles Visual Studio's editor for Windows Forms projects. • Source view: You use this view to directly edit the HTML source code that makes up a Web form. • Split view: This view displays the page's Design view and Source view in separate panels.
(TYPE OF CONTROL): Controls that let you automatically generate Web pages from database tables.
Dynamic Data
..are fired in a different sequence in Web forms than they are in Windows forms. In a Web form, the Page_Load event occurs when the page is first loaded into the user's browser, and again every time the page is posted back to the server.
Events
After sending the Web page to the user, the server ...
immediately breaks the connection. It becomes free to handle Web page requests from other users
Three choices for running a web server
• The ASP.NET Development Server (also known as IIS Express) is installed automatically with Visual Studio. It is easy to use and requires no special security setup. • Internet Information Services (IIS) is a professional production tool, which is available as an option with various versions of Microsoft Windows. It must be configured carefully to ensure security against hackers. • A remote Web server is typically available through an Internet Service Provider (ISP) or a corporate Web server. You can copy your application to a remote Web server before running it. You must always have a username and password to publish on a remote server.
Web controls have similar properties to their Windows Forms counterparts. Examples of such properties are Text, Enabled, Visible, Font, BorderStyle, ReadOnly, and TabIndex. The following, however, are a few important differences between Web controls and Windows controls:
• The ID property of Web controls is the counterpart to the Name property of Windows controls. • Web controls have an important new property named AutoPostBack. • Web controls lose their runtime properties when the user moves away from the current page. Special programming techniques, called saving state, are available to overcome this challenge.
In preparation, a computer must be running a Web server. The server waits for connection requests, which occur in two steps:
1. A user running a Web browser connects to the server by opening a network connection and passing a URL to the connection. An example is http://microsoft.com. 2. Using the URL it receives from the user's Web browser, the Web server translates the URL into a physical location within the server computer's file system. The server reads the requested file, now called a Web page. The server sends the Web page over the network connection to the user's computer. The user's Web browser renders (interprets) the HTML. Output consists of text, graphics, and sound.
How web controls are processes
1a user connects to an ASP.NET Web page, a special process takes place, as shown in 2, the Web server reads and interprets the Web controls on the page and executes Visual Basic statements in the application's code-behind file. 3, the server creates a modified Web page consisting of standard HTML tags and controls. 4, the modified Web page is sent back to the user and displayed in the Web browser.
(TYPE OF CONTROL) Controls that provide rich interface experiences in the user's Web browser.
AJAX Extensions:
... provides a way to separate ordinary HTML from object-oriented program code. It also provides many powerful controls, which are similar to Windows Forms controls. ...lets you transfer a lot of your Visual Basic knowledge to Web applications.
ASP.NET
Although ... look like HTML controls, they are more powerful because they have a larger set of properties and they use event handler procedures to carry out actions based on user input. In effect, they behave a lot like Windows Forms controls.
ASP.NET Server Control
The latter, known also as ..., are interactive controls such as buttons, list boxes, and text boxes that execute on the server.
ASP.NET Server controls
When a control's ..property equals True, clicking on the control causes the form to be posted back to the server.
AutoPostBack
A... runs directly under the ASP.NET Development Server supplied with Visual Studio.
File System Website
This type of Web site is best suited to college laboratory environments and non-administrative users (students).
File System Website
For the Web location, your choices are ...
File System, HTTP, and FTP
types of Web sites
File System, Local IIS, FTP Site, and Remote Site
When...are enabled, you can very easily update your remote site directly from Visual Studio.
FrontPage Extensions
(TYPE OF CONTROL): Controls found on HTML Web pages, such as buttons, check boxes, radio buttons, lists, and text boxes. They are compatible with standard HTML, have a limited number of properties, and have no associated classes. Most importantly, they do not generate user events such as Click or SelectedIndexChanged.
HTML
The programs automatically generate ...that is appropriate for the user's browser.
HTML
... is the tool in Visual Studio that simplifies the design of Web pages and Web forms.
HTML Designer
The... generates HTML source code and embeds special codes that identify ASP.NET Web controls. It is possible to create Web forms using a plain text editor, but doing so requires considerable practice.
HTML designer
... is a standardized language that describes the appearance of pages.
HTML, which stands for HyperText Markup Language,
It is a professional-quality Web server with powerful security and configuration features, but requires some expertise to set up and maintain...
IIS
... is a professional production tool, which is available as an option with various versions of Microsoft Windows. It must be configured carefully to ensure security against hackers.
Internet Information Services (IIS)
If you were to create an HTTP Web site, you would choose a location determined by the...
Internet Information Services (IIS) Web Server.
Web-based technologies and tools such as ...were created.
Java Server Pages and Microsoft ASP.NET
Scripting languages such as ... have made Web programming much easier.
JavaScript and PHP
When displaying text, you need to use a ...only if its contents will change at runtime, or if you plan to change its Visible property.
Label
(TYPE OF CONTROL): Controls related to authenticating users when they log into a Web site with usernames and passwords.
Login
(TYPE OF CONTROL)• : Advanced controls for navigating between Web pages.
Navigation
you must be careful not to execute any code in the... event handler that changes the states of controls whose event handlers have not yet had a chance to execute.
Page_Load
(TYPE OF CONTROL)• : Contains the Microsoft ReportViewer control for displaying Web-based
Reporting
(TYPE OF CONTROL)... : This group contains the most commonly used controls on Web forms. Some are close relatives of Windows forms controls, including Label, Button, ListBox, CheckBox, CheckBoxList, and RadioButton. Others are unique to Web programming, such as the LinkButton and HyperLink controls.
Standard
... is text you type directly onto a form.
Static text
is a Cascading Style Sheet (CSS) file containing HTML styles for customizing the appearance of Web forms.
Styles.css
The.. property lets you position the text to the left or right of the box.
TextAlign
.... controls have similar properties to their Windows Forms counterparts. Examples of such properties are Text, Enabled, Visible, Font, BorderStyle, ReadOnly, and TabIndex. The following, however, are a few important differences between Web controls and Windows controls:
TextBox Web
The ..is similar in many ways to the TextBox control for Windows forms.
TextBox Web control
When you are designing Web forms, the ...window contains Web-related controls placed in the following groups:
Toolbox
IIS requires you to have ... on the computer running the server in order to test and debug Web applications.
administrative rights
many applications require Web pages to be fully functional programs. Companies like Microsoft and Sun Microsystems decided that Web applications should be written using ....
advanced programming languages.
If you select FTP, you must ...
already have a Web site set up on a remote computer.
If you select File System, your Web application can be located in ...If you select FTP, you must already have a Web site set up on a remote computer.
any folder on your computer or a network drive.
A code-behind file file name extension is....
aspx.vb.
Web applications are designed around a ... model, which means that an entity called a server produces data consumed by another entity called a client.
client-server
Visual Studio checks your Web application's ..for errors before running it.
code
The source code for a Web form is usually stored in a related file called a..., with the filename extension aspx.vb.
code-behind file
When we add the Default.aspx Web form to the project, another file named Default.aspx.vb is automatically created. This is called a ... because it will hold all of the Visual Basic code that we will write for event handlers and program logic.
code-behind file
Web server controls are ... to ASP.NET.
unique