You are designing an ASP.NET Web application for content management.
You have the following requirements:
– Support multiple browsers.
– Display a specific interface for browsers that have display dimensions of less than 640 x 480 pixels.
You need to design a solution for identifying the display dimensions of the requesting browser.
Which approach should you recommend?
A.
Use CurrentUICulture.
B.
Use the HttpUtility class.
C.
Use the HttpWorkerRequest class.
D. Use the HttpBrowserCapabilities class.
Explanation:
HttpBrowserCapabilitiesEnables the server to gather information on the capabilities of the browser that is
running on the client.
http://msdn.microsoft.com/en-us/library/system.web.httpbrowsercapabilities.aspx
HttpWorkerRequest This abstract class defines the base worker methods and enumerations used by ASP.NET
managed code to process requests.