PrepAway - Latest Free Exam Questions & Answers

What should you recommend?

You are designing an ASP.NET Web application that targets multiple browsers and form
factors. Some devices do not support the markup produced by a third-party server control.
You cannot modify the third-party server control. You need to recommend an approach for
providing the correct markup for the problematic devices. What should you recommend?

PrepAway - Latest Free Exam Questions & Answers

A.
Derive a class from ControlAdapter that produces device-specific markup. In the browser
definition file, add an entry in the controlAdapters collection for each of the problematic
devices. In the entry, point to the third-party server control and adapter type.

B.
Derive a class from the third-party server control. In the new server control, override the
TemplateSourceDirectory property to return a value pointing to a file containing the

device-specific markup.

C.
Create an ASP.NET theme specific to each problematic device. In the page PreRender
event, set the Theme property to the custom theme based on the value of the
Request.Browser.Type property.

D.
In the page PreRender event, call the Response.WriteSubstitution() method with a
delegate. In the delegate, populate the page with device-specific markup based on the
value of the Request.Browser.Type property.


Leave a Reply