|
| If you are familiar with the old ASP model, think of a
user control as a server side include, i.e, a page of html
(static or dynamic) content that can be included in
multiple pages. This is very useful for menu bars etc.
This means that the user control can be updated and all
pages using it are updated. However, the user control must
be copied to each web app meaning it uses more disk space
than a custom control.
Custom controls are more flexible in that they dynamically
generate their content at runtime and reside in the global
assembly cache. This means that they can be used from the
GAC in any application on the web server and could
generate different content (based on properties and events
etc) for each of these applications, hence using the least
disk space.
Based on this description answer C is correct.
>-----Original Message-----
>Hello all,
>Could you please tell me what is the difference
between "Web Custom
>Control" and "Web User Control"? I am very confused about
all
>different control thingies, sooooooooo many types of
controls!
>
>Also what should be the answer of the following question:
>
>You have been contracted to build a custom Web
application for a
>company that takes merchandise orders by telephone. Each
salesperson
>will receive telephone calls from customers who are
responding to
>television, radio, and print advertisements and will
enter the
>caller's order into the Web application. The call
center's manager
>wants the Web application to display the current call
status, which
>consists of the number of active calls, the number of
calls waiting,
>and the longest current wait time, at the top of each Web
page.
>
>The users will also use other Web applications on the
intranet to
>perform other job-related tasks. The current call status
display
>should appear at the top of each of these applications.
>
>How should you implement the current call status display
in order to
>minimize your effort and the amount of disk space used?
(Select the
>best choice.)
>
>a. Add a Label control to the top of all pages in all Web
>applications. Implement the data access code in each page.
>
>b. Add a TextBox control to the top of all pages in all
Web
>applications. Implement the data access code in each page.
>
>c. Create a Web Custom Control that will display the
information.
>Add the control to the top of each page of each Web
application.
>
>d. Create a Web User Control that will display the
information. Add
>the control to the top of each page of each Web
application.
>
>
>.
>
|
|