Hi,
I wanted to track visitors in asp.net 2.0 app.
So I added code to method Application_Pre RequestHandlerE xecute.....
But, it seems like.. if output cache is enabled on a page, this method does
not get called.
Is there a generic method that is always called, even on pages that has
output caching?
I need accesss to session and cookies too.....
Thanks
Nalaka 2 1269
On Mon, 14 Aug 2006 10:24:27 -0700, "Nalaka" <na******@nospa m.nospam>
wrote:
>Hi, I wanted to track visitors in asp.net 2.0 app. So I added code to method Application_Pre RequestHandlerE xecute.....
But, it seems like.. if output cache is enabled on a page, this method does not get called.
Is there a generic method that is always called, even on pages that has output caching? I need accesss to session and cookies too.....
Thanks Nalaka
The order of processing is:
BeginRequest
AuthenticateReq uest (cookie gets loaded)
AuthorizeReques t
RsolveCache (Page ouptut cache loads)
....
PreRequesthandl e (never gets here for cache)
Httphandler...
You need to put your processing after authenticate requests and before
resolve cache.
Peter Kellner http://peterkellner.net
Thanks Peter..
"PeterKelln er" <pk**********@7 3rdstreet.comwr ote in message
news:59******** *************** *********@4ax.c om...
On Mon, 14 Aug 2006 10:24:27 -0700, "Nalaka" <na******@nospa m.nospam>
wrote:
>>Hi, I wanted to track visitors in asp.net 2.0 app. So I added code to method Application_Pre RequestHandlerE xecute.....
But, it seems like.. if output cache is enabled on a page, this method does not get called.
Is there a generic method that is always called, even on pages that has output caching? I need accesss to session and cookies too.....
Thanks Nalaka
The order of processing is:
BeginRequest
AuthenticateReq uest (cookie gets loaded)
AuthorizeReques t
RsolveCache (Page ouptut cache loads)
...
PreRequesthandl e (never gets here for cache)
Httphandler...
You need to put your processing after authenticate requests and before
resolve cache.
Peter Kellner http://peterkellner.net This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Robert Oschler |
last post by:
This is my current strategy for tracking hyperlink clicking by a site
visitor (Internet Explorer example):
Using Javascript I:
Attach an event to the document "onclick" handler.
When a click occurs, the Javascript "onclick" event hander I assigned,
checks to see if the event srcElement (or its parent in the case of a "font"
element) is a...
|
by: Tom Kiefer |
last post by:
Question:
If I have an ASP.NET User Control which defines/exposes a property that the
page can use to specify a mode or data subset for the control to use, is
there a way to tell the @OutputCache directive to vary its cache based on
that property value?
I.e., I have:
<my:control runat="server" id="mcOne" Flag="One" />
<my:control...
|
by: Vassilis T. via .NET 247 |
last post by:
The following piece of code, when on a heavily loaded server (more than 50 ASP.NET pages, most using outputcache with varybyparam, lots of users), will only cache the string - the output is not cached, as if the outputcache is ignored.
There is available RAM on the server.
Other pages are cached as expected.
On the development environment and...
|
by: Barbara Alderton |
last post by:
I have the following scenario:
I have a user control that contains a registered menu control. The menu and
other information on the user control is specific to the user accessing the
site. This user control is used on many pages. In order to create this
control, I need to access information in the Active Directory to create both
the menu...
|
by: Johan Nedin |
last post by:
Hello!
I am having a problem with the @OutputCache page directive and Web
browser Back Buttons.
Problem:
After setting <%@ OutputCache Location="None" %> on my pages I get the
"Warning! Page has expired" error message, when pushing the Back
Button in my Web browser.
| |
by: Mike Kansky |
last post by:
i have a following tag in all of the HTML pages of my site:
<img src="http://domain.com/image.aspx">
In image.aspx i just send an image to the browser using simple
respone.redirect("imagepath") and there is also some tracking code in
image.aspx
The weird thing is that a new Session.SessionID is created by image.aspx as
|
by: Arpan |
last post by:
I am using the following code to cache the page output for 60 seconds:
<%@ OutputCache Duration="60" VaryByParam="*" %>
<script runat="server">
Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs)
lblOutput.Text = "Welcome, " & Request.Params("id") & " The
time now is " & DateTime.Now.ToString("T")
End Sub
</script>
|
by: Nalaka |
last post by:
Hi,
I get the following error, I thought at random intervals.
Then I realized, that this happens around the time tha page outputCache is
set to expire.
So I disabled the page output cache and the problem went away.
I put in the outputcache back and the problem is back.
I am using forms authentication... and asp.net 2.0.
Have you seen...
|
by: brett |
last post by:
How can I get the IP address of a visitor to my site in ASP.NET 2.0?
Please include the full namespace.
Thanks,
Brett
|
by: =?Utf-8?B?TWlndWVsIElzaWRvcm8=?= |
last post by:
Hi,
I have an ASP.NET 2.0 application that allows content search. Search is
included in all pages and a cross postback to the search results page is
performed with the text inserted by the user. The search results also allows
refining the search and a search button that performs a postback triggers the
search. Many of the web pages in the...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
| |
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |