Final Paper
COMSATS University Islamabad, Vehari Campus
Department of Computer Science
Final
Subject: Web Technologies Instructor: Zahid Anwar
Class: BSCS-B17 A&B Maximum Marks: 50
Answer the following questions:
- What is Range validator control? explain with example.[2]
- When and why HTTP Status 403 error occur?[2]
- Write down the methods name that are used in asp.net to handle the exceptions?[2]
- What is for each loop and when it will be used?[2]
- How to declare any model list? [2]
- What is ADO.NET? [2]
- Write down the list of Operations occurring in the lifetime of a SqlConnection object?[2]
- How to test a database connection? [2]
- Write down “action result” and “Helper method” name for redirect to another action method [2]
- What will be the purpose of the following Action Result “ ViewResult”? [2]
- Write the code to get connection string from web.config file?[2]
- Difference between DIV and Table?[2]
- Difference between Get and Post method.[2]
- Write down the Difference between session and cookies? [3]
- What we have to write in Html.BeginForm in view page for uploading any file? [3]
- Describe SqlDataAdapter and SqlDataReader. [4]
- Write difference between Authentication and Authorization, types of authentication and different way to implement authentication in MVC?[6]
- Write the HTML code that creates a form as given below. Write the model and data annotation that validates the input provided by the user.[8]
Good Luck