Microsoft
70-515 · Question #17
You are creating an ASP.NET Web site. You create a HTTP module named CustomModule, and you register the module in the web.config file. The CustomModule class contains the following code. public…
The correct answer is D. public void Init(HttpApplication app). See the full explanation below for the reasoning.
Question
You are creating an ASP.NET Web site. You create a HTTP module named CustomModule, and you register the module in the web.config file. The CustomModule class contains the following code. public class CustomModule : IHttpModule { string footerContent = "<div>Footer Content</div>"; public void Dispose() {} } You need to add code to CustomModule to append the footer content to each processed ASP.NET page. Which code segment should you use?
Options
- Apublic CustomModule(HttpApplication app)
- Bpublic void Init(HttpApplication app)
- Cpublic customModule();
- Dpublic void Init(HttpApplication app)
How the community answered
(42 responses)- A5% (2)
- B17% (7)
- C5% (2)
- D74% (31)
Community Discussion
No community discussion yet for this question.