News:

SQL Table To C# Entity Model ConverterEntity Model (Class Properties) to SQL Table ConverterIf you encounter any trouble visiting our site, please contact us.

Advertisement

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;
public class CustomModule : IHttpModule
{
string footerContent = "
Footer Content
";
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?

  1. public CustomModule(HttpApplication app)
    {
    app.EndRequest += new EventHandler(app_EndRequest);
    void app_EndRequest(object sender, EventArgs e)
    {
    HttpApplication app = sender as HttpApplication;
    app.Response.Write(footerContent);
    }
    
  2. public void Init(HttpApplication app)
    {
    app.EndRequest += new EventHandler(app_EndRequest);
    void app_EndRequest(object sender, EventArgs e)
    {
    HttpApplication app = new HttpApplication();
    app.Response.Write(footerContent);
    }
    
  3. Public customModule();
    {
    HttpApplication app = new HttpApplication();
    app.EndRequest += new EventHandler(app_EndRequest);
    }
    void app_EndRequest(object sender, EventArgs e)
    {
    HttpApplication app = sender as HttpApplication;
    app.Response.Write(footerContent);
    }
    
  4. public void Init(HttpApplication app)
    {
    app.EndRequest += new EventHandler(app_EndRequest);
    }
    void app_EndRequest(object sender, EventArgs e)
    {
    HttpApplication app = sender as HttpApplication;
    app.Response.Write(footerContent);
    }
    
Answer: Answer is d
comments powered by Disqus
Advertisement

BCS Preparation now even more easy. ReadBD is the place where you can find all kind of resources to be successful in BCS,Bank,Islami Bank exam and interview.

Looking for job. Try JobLoader- First ever job search engine in Bangladesh. All open bd jobs now a single mouse click away.

;