• Nie Znaleziono Wyników

Introduction to server side programming

N/A
N/A
Protected

Academic year: 2021

Share "Introduction to server side programming"

Copied!
7
0
0

Pełen tekst

(1)

Introduction to server side programming

Michał Okulewicz, MSc Warsaw University of Technology

Faculty of Mathematics and Information Science M.Okulewicz@mini.pw.edu.pl

http://www.mini.pw.edu.pl/~okulewiczm

(2)

Server side programming tasks

• We will be using Microsoft .NET WebForms as an example of server side scripting

• In all the tasks please use Visual Studio 2012, 2013 or 2015

• DISCLAIMER: This is NOT a tutorial in WebForms progamming

• HINT: Please use enclosed HTML and CSS

(3)

Web project [VS 2012 example]

• Create a new Empty web project

• Add the contents you need – HTML pages

– CSS styles – JS scripts

– WebForms (ASPX)

(4)

Task 1, part 1

• Create an HTML page with a registration form:

– A text input

– Two password inputs – A file input

– REMINDER: set the name attributes of the inputs

• Copy the HTML form 3 times, setting the method and enctype attributes to the following:

– get; application/x-www-form-urlencoded – post; application/x-www-form-urlencoded

(5)

Task 1, part 2

• Create a Register.aspx WebForm for checking the identity of the passwords (point the action of the forms to the Register.aspx)

• Display HTTP environment variables – CONTENT_TYPE

– REQUEST_METHOD – QUERY_STRING – CONTENT_LENGTH

• Display contents of the input stream from the Request object

• Observe the differences between different methods and encodings

(6)

Task 2

• Create a GeoConverter.aspx WebForm for converting the geographical coordinates between the decimal and degrees minutes seconds format

• The user enters and submits the coordinates for longitude and latitude in any of those formats (eg. 51 23' 21” N or 51.389167) which results in displaying longitude and latitude in both formats

• The GeoConverter WebForm should be immune to the incorrect format of the parameters displaying an info message Format not recognized

(7)

Task 3

• Create a WebForm generating a PNG image

• An image might be a circle, a rectangle or a custom text, depending on the parameters provided to the WebForm

Cytaty

Powiązane dokumenty

• Before the cell is updated set its background to red colour and if the update is a success change it to white (you may add a Thread.Sleep on the server side to observe

• Separate data generation from setting the number of groups and range of values to different methods and store the settings in the

• The content type "multipart/form-data" should be used for submitting forms that contain files, non- ASCII data, and binary data.. • The content

– Do not display the form if the cookie with login is present – Add a link and a WebForm to delete the cookie. – A link displays the login from

[r]

Faculty of Mathematics and Computer Science University of Warmia and Mazury in Olsztyn. June

Find the components of the velocity vector for the child on the ferris wheel in Exercise 6.7 using a coordinate system which has its origin at the center of the ferris wheel and

hereinafter referred to as ‘the Article’ which shall be published by the Scientific Publishers of the Faculty of Management of the University of Warsaw in Journal of Marketing