Create and deploy HTTPModule in SharePoint 2010
1. Create a class library 2. Add below code in the cs file using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.UI; using Microsoft.SharePoint; using System.Configuration; using Microsoft.SharePoint.ApplicationRuntime; namespace DynamicModule { public class DynamicModule : IHttpModule { public void Init(HttpApplication context) { context.PreRequestHandlerExecute += new EventHandler(context_PreRequestHandlerExecute); } void context_PreRequestHandlerExecute(object sender, EventArgs e) { Page page = HttpContext.Current.CurrentHandler as Pa...