Assignment title: Information
Web programming - Assessment Task 1 LAST UPDATED: December 2015, Version No. 3.0
Page 1 of 4
T. +61 2 9283 4388 | E. [email protected]
Lower Ground, 101 Sussex St., Sydney NSW 2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600 | CRICOS CODE: 01856K | RTO: 90501
Assessment 1 – Computer Based Activities
Instructions:
This assessment needs to be completed in addition to the Tutorial/Class activities you may complete in class
during the cluster. You must successfully complete the tasks specified in this assessment.
This is an individual assessment in which you will undertake different tasks based on your lecture notes, inclass exercises, recommended books and other resources in this assessment.
You need to use Microsoft Visual Studio 2008 and C# language to perform Task 2-Task 8
If you are not sure about any aspect of this assessment, please ask your Trainer.
Duration:
Trainer will set the duration of the assessment.Web programming - Assessment Task 1 LAST UPDATED: December 2015, Version No. 3.0
Page 2 of 4
T. +61 2 9283 4388 | E. [email protected]
Lower Ground, 101 Sussex St., Sydney NSW 2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600 | CRICOS CODE: 01856K | RTO: 90501
Your tasks:
Task 1:
Discuss usage of HTTP and different roles in HTTP. (300 words)
Task 2:
Create a web application with Master page and five web forms. By using navigation control, create the
navigation for all the web forms. When the user (Trainer) clicks on the navigation control the link should take
the user to the corresponding web pages. First three web-forms have to be linked with the master page and
the rest two should be individual page.
Once you have demonstrated the application to the Trainer and confirmed then take the screen shot of the
application and paste in your answer document.
Task 3:
Create a site map for the web application you have created in task 2.
When you have finished, show to your Trainer and then take the screen shot and paste in your answer
document.
Task 4:
Add a link in the Home page to the application you have created in Task 2 which will enable the users to
become a registered member of your web application. Your web application should also have the login page to
enter into your application after becoming the member.
After completing the task, demonstrate it to your Trainer then take the screen shots and paste in your answer
document.
Task 5:
Perform validation for all the require fields for Task 4 and demonstrate to your Trainer.
Take some sample the screen shots of the validation process and paste in your answer document.
Task 6:
Perform debugging operation for the above tasks (From Task 2 to Task 5) and take the screen shots and paste
in your answer document.
Task 7
Using the Visual Studio debugger, identify and fix errors in the following
programs:
a)
protected void Button_Click(object sender, System.EventArgs e)
{Web programming - Assessment Task 1 LAST UPDATED: December 2015, Version No. 3.0
Page 3 of 4
T. +61 2 9283 4388 | E. [email protected]
Lower Ground, 101 Sussex St., Sydney NSW 2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600 | CRICOS CODE: 01856K | RTO: 90501
int number,
result;
number = System.Convert.ToInt32(NumberTextBox.Text);
result = Square(number):
ResultLabel.Text = NumberTextBox.Text +
" squared is " + result.ToString();
}
b) You are required to run the following C# program that throws an exception. Fix this code by implementing
try catch block and display the appropriate error message.
using System;
namespace ErrorHandlingApplication
{
class DivNumbers
{
static void Main(string[] args)
{
int num1,num2,result;
num1 = 6;
num2 = 0;
result= num1 / num2;
Response.WriteLine("Result: {0}", result);
}
}
}Web programming - Assessment Task 1 LAST UPDATED: December 2015, Version No. 3.0
Page 4 of 4
T. +61 2 9283 4388 | E. [email protected]
Lower Ground, 101 Sussex St., Sydney NSW 2000 Australia | www.wic.nsw.edu.au
ABN: 19 080 559 600 | CRICOS CODE: 01856K | RTO: 90501
Task 8
Write the coding for the “Simple Database Application” and show the screenshots to your trainer. Your screen
shots should show the application running with breakpoints in debug mode.
Task 9
What are the main components of “Log4net”? Briefly describe how loggers work in Log4net (200 words)