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
p. 2
Michał Okulewicz http://www.mini.pw.edu.pl/~okulewiczm
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
sources
Web project [VS 2012 example]
• Create a new Empty web project
• Add the contents you need – HTML pages
– CSS styles – JS scripts
– WebForms (ASPX)
p. 4
Michał Okulewicz http://www.mini.pw.edu.pl/~okulewiczm
Task 1
• Enhance Register.aspx from Lab 9 with creation of the Cookie and adding it to the response
• Experiment with the cookie Expires property
• Change the registration form into a WebForm
– 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 the cookie
• Is it a safe method of authentication?
Task 2
• Create 3 CSS stylesheets with 3 color schemas:
‒ black on white
‒ white on black
‒ blue on yellowish
• Create a WebForm with a control for switching between the stylesheets
• HINT: use HTTP Cookies for storing information about color schema
p. 6
Michał Okulewicz http://www.mini.pw.edu.pl/~okulewiczm
Task 3
• Create a WebForm generating a table of a given size
• Each cell of the table contains an input
• The size of the table and its contents are preserved while reloading the page
• The new content is saved when clicking Save button