Download Mr. Lynch - Damage Control

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Falcon (programming language) wikipedia , lookup

Structured programming wikipedia , lookup

C Sharp (programming language) wikipedia , lookup

Transcript
Accelerated Computer Science 2
Chapter 14 – Web-Based Applications
Many of the programs that we use daily incorporate the use of the Internet. They can do things
such as getting and using information from the web site, as well as display the website in a
browser
What is a Web-Based Application?
A web-based application is exactly what it sounds like: an application that runs in a web
browser. This means it is designed to accessible to multiple users, run over different platforms,
and deliver the same content to every user. A web application, or web site, is a collection of
one or more related files or components stored on a web server. There are either static web
pages, which are basically pre-created documents stored locally, or dynamic web pages, which
enable the user to connect to other computers via a network
How do I create/use web based applications?
Web based applications are implemented in WPF Forms. The code is written in C#, and created
in the same format as a Windows Form program. Many of the objects, as well as their
properties and restrictions, are shown in the properties menu.
Is anything different?
The WPF forms utilizes XAML, as well as allows you to use different objects, such as Calendar
and DataGrid. For objects such as these, validation controls can be used in order for input to be
validated by the server.
Type of Control
Description
CompareValidator`
Compares an input value against a preset
constant value using comparison operators
CustomValidator
Checks the input value using program
statements you write yourself
RangeValidator
Compares an input value to see if it is
between specified lower and upper
boundaries (can check ranges of dates or
alphanumeric characters)
RegularExpressionValidator
Matches an input value to a pattern defined
as a regular expression (used for entries such
as e-mail, phone, and SSNs to see if values
match a sequence)
RequiredFieldValidator
Checks that entry has a value
What is ASP.NET and how is it used?
ASP.NET is a programming model used to create dynamic web pages. It includes a number of
classes as part of the net framework, which allows you to take advantage of the common
language runtime and inheritance. You can use Visual Basic, J# and C# in order to develop
ASP.NET applications, and the applications you create run on the computer functioning as the
Web server.
Web services
Many links and webpages can provide functionalities such as a search engine or weather
information. Web services enable you to exchange data from one computer to another, and
allow for you to retrieve data that can be remotely executed through HTTP.
What is HTML and XAML? How are they used?
HTML (HyperText Markup Language) and XAML (pronounced zammel) are markup languages
used when creating Web pages. XAML is used for initializing structured values and objects. It
tags the objects and instances used in the program. When the information is changed, such as
labelling or changing properties or size within the form, XAML displays its position, as well as
actions. HTML is the basis upon which many Web pages are written. It allows images and
objects to be embedded and can be used to create interactive forms. It provides a means to
create structured documents by denoting structural semantics for text such as headings,
paragraphs, lists, links, quotes and other items. It can embed scripts written in languages such
as JavaScript, which affect the behavior of HTML web pages.
Chapter 14 consists of web-based applications that can open up in your browser.
Although it is still in the language C# the main part of your programming will be done in the
language HTML.
Select Web under Visual C# and then select the First Option.
Next you will be brought to this page. Here select empty under ASP.NET 4.5.2 and Uncheck
Host in the Cloud. Next Add an item and click on the Web Form Box. (This is where the main
programming will be taking place).
Everthing in HTML starts and ends almost the same. If I wanted to start the document I would
write <html> and if I wanted to end the document </html>. All of html works this way. Anything
you want to do is generally in tags or < >. Here is a table of most of the basic tags you will be
using in the programs.
A couple tags not mentioned here are <h1>Header</h1>, if you change the 1 to 2 then it will get
smaller same with 3 and so on.
Next is attributes which is attached onto the tag and modifies its contents. Tags are used for all
sorts of things such as changing size which would be done like this. <img src="w3schools.jpg"
width="104" height="142">
Program 1 – (5 points)
Create a Page with a header, a paragraph about you, and a link to Mr. Lynch’s Comp Sci page.
Include a Horizontal Rule between all 3 items.(<hr>)
Program 2 – (10 points)
On a page have a header that says Computer Science 2, Include a link, the song Kalimba (which
should be pre downloaded in your Music Folder)and have a picture. Also include a footer with
your last name. Use a color other than black and white for the elements in the page.