Rank: Advanced Member
Joined: 4/21/2011 Posts: 30 Points: 90
|
I have a panel that displays pdf documents and uses the EntreeListItemDetailHyperLink control to heyper link to the document. My question is how can I intercept the hyper link click action perform some logging code and then have the pdf document load?
|
 Rank: ME Staff
Joined: 1/12/2009 Posts: 279 Points: 408 Location: VA
|
Does the logic need to be server side or client side?
If it can be client side, you could put something like the following in your href:
javascript:doLogging();window.location='mypdf.pdf'
If it has to occur server side, you could have a proxy service that your pdf's are loaded through that you link to from ME. An ASPX page that you would pass a parameter to that is the PDF you want to load. Something like LoadDocument.aspx?doc=mypdf.pdf. Then to make sure ME doesn't intercept the request for LoadDocument.aspx, you would add that to the Ignored Paths in Central Administration.
-joe
|