Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
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.
Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...