fguihen Posted September 15, 2006 Posted September 15, 2006 is there an event in asp.net 1.1 thats triggered when a request for the page is recieved? i want to take info from this request ( browser type , location ) and what not. Quote
Gill Bates Posted September 15, 2006 Posted September 15, 2006 Just add a global.asax file to your project. You can then hook the page request with something like:void Application_BeginRequest(Object Sender, EventArgs e) { if (HttpContext.Current != null) { HttpRequest request = HttpContext.Current.Request; } }You may also want to have a look at the IHttpModule interface. There's a lot of examples around online for it. You can do some cool stuff by injecting yourself into various parts of the Request/Response streams. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.