Page 28 - DCAP312_WEB_TECHNOLOGIES_II
P. 28
Web Technologies-II
Notes 10. The namespaces that are automatically imported into all ASP.NET pages
1) System,System.Collections, System.IO
2) System.Web,System. Web.UI
3) System.Web.UI.HtmlControls,System. Web.UI.WebControls
(a) 1 (b) 1, 2 and 3
(c) 2 and 3 (d) None.
11. Which is true to bind a method by setting the Master attribute in the <pages>?
(a) < configuration>
< system.web>
< pages masterpagefile= “r4r.co.in.MasterPage” />
</system.web>
</configuration>
(b) < pages>
< system.web>
< pages masterpagefile= “r4r.co.in.MasterPage” />
</system.web>
</ pages>
(c) Both (d) None
12. Syntax for Register directive specifies
(a) < Register runat= “server” [language= “language”]>
//code……………….
</ Register >
(b) <%@ Assembly Name= “r4r” %>
(c) 1 and 2 (d) None.
13. ASP.NET Supports “Nested Master Page”
(a) Yes (b) No
14. Choose correct for Custom Server Controls
1) Two ways of creating custom server controls.
2) The pagelet approach, which is easy to do but rather limited in functionality.
3) Control base class (or UserControl) derivative approach
(a) 1, 2 and 3 (b) 1 and 2
(c) 3 (d) 1 and 3
15. Choose all true options only
(a) HtmlImage is HTMLControl for image and it used for html tag
(b) HtmlInputHidden Used for hidden just like form fields
(c) Both (d) None.
22 LOVELY PROFESSIONAL UNIVERSITY