COMSATS University Islamabad, Vehari Campus
Department of Computer Science
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.
- When and why HTTP Status 403 error occur?
- Write down the methods name that are used in asp.net to handle the exceptions?
- What is for each loop and when it will be used?
- How to declare any model list? 
- What is ADO.NET? 
- Write down the list of Operations occurring in the lifetime of a SqlConnection object?
- How to test a database connection? 
- Write down “action result” and “Helper method” name for redirect to another action method 
- What will be the purpose of the following Action Result “ ViewResult”? 
- Write the code to get connection string from web.config file?
- Difference between DIV and Table?
- Difference between Get and Post method.
- Write down the Difference between session and cookies? 
- What we have to write in Html.BeginForm in view page for uploading any file? 
- Describe SqlDataAdapter and SqlDataReader. 
- Write difference between Authentication and Authorization, types of authentication and different way to implement authentication in MVC?
- 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.