tags:

views:

52

answers:

1

If you have <img src=""> on your page, the image load will result in another web request to the page that was originally loaded. Is there a way (in ASP.NET) to detect that the web request was the result of being loaded for an <img> tag like this?

The only difference I can find is the HTTP_ACCEPT value of */* for <IMG> requests, vs. a limited HTTP_ACCEPT value for the actual page request. I am fearful that will be too restrictive though.

A: 

dont know about built in function, but you can pass some query string parameter from src="..." url, and detect that parameter in the page load event of requested page.

Anil
That would require that every real page load has a query string though, right?
Jeff Handley