Tom,

protected void Application_BeginRequest(Object sender, EventArgs e)
{
   if(Request.RequestType == "POST")
   {
      string postBackData = Request.Form["__VIEWSTATE"];
      if(postBackData.Length > 0)
      {
         Response.Write("A POSTBACK!!!!");
      }
   }
}

______________________
Paul Brinkley-Rogers
Web Developer
The Sak
[EMAIL PROTECTED]
http://www.thesak.com 



-----Original Message-----
From: Tom Tinsley [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 5:17 AM
To: dotnet
Subject: Postback

Is there anyway to determine if a page is a postback in the global.asax?
I am trying to log hits to aspx files in a database, but I only want to
log the hit this first time the page is accessed by a user not every
time the page does a round trip to the server.

Thanks
Tom

---
You are currently subscribed to dotnet as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/



---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/


Reply via email to