Microsoft
70-515 · Question #83
You are developing an ASP.NET MVC 2 application. You create a login user control named login.ascx. You need to display Login.ascx in a view. What should you do?
The correct answer is C. Use the HTML.Partial method. See the full explanation below for the reasoning.
Question
You are developing an ASP.NET MVC 2 application. You create a login user control named login.ascx. You need to display Login.ascx in a view. What should you do?
Options
- AUse an HTML server-side include.
- BUse the HTML.Display method
- CUse the HTML.Partial method.
- DUse the @Import directive
How the community answered
(48 responses)- A10% (5)
- B2% (1)
- C83% (40)
- D4% (2)
Community Discussion
No community discussion yet for this question.