Question1. The Repeater control uses templates to control formatting. Give the five types of templates supported by the Repeater control.
Question2. You can enable cookieless sessions by modifying the sessionState element in the web configuration file. List and explain four possible values for the cookieless attribute as used in the sessionState element.
Question3.
(i) Which potential problems may arise when you change items stored in an Application State object?
(ii) What should you do to prevent this?
Question4. Write extract codes to demonstrate how you can achieve the following:
(i) Set a persistent cookie from the value entered in the “txtUsername” TextBox control
(ii) Retrieve the cookie value
(iii) Delete the cookie.
Question5. What is a ConnectionString? Give a suitable example to illustrate the various part of a ConnectionString.
Question6. Distinguish between the following methods as used in ADO.NET:
(i) ExecuteReader()
(ii) ExecuteNonQuery()
(iii) ExecuteScalar()
Question7. Give four options that allow you to store Session State Data.