catching error url

C

chanko

hello!
i have a web application where i catch whatever error happens in the
app in the global.asax and use it to send me an error with the details
so i can look into the matter.

but i have a problem

let's say that on the app we have 2 sections: file upload and page
creation

users normally create pages, where they will link to files they have
uploaded. all this works fine. the problem arises when the user
deletes said file, but can't remember in which pages this file has been
linked to, and since the links are static html, whenever another user
browses pages and ends up in that particular page and clicks the link,
the system can't find the file and throws an error

the error i get is from my openfile.aspx page saying file not found
exception. ok i know the file isn't there because it was deleted, but i
want to know if there's a way of going on step back and get the url
that requested the openfile.aspx:

www.mydomain.com/pages/page.aspx?pageid=X

i need this so i can go into that particular page and either erase the
link or update it, pointing to a new file. i can't do this manually
since i have a lot of users each creating a large number of pages. so
going into each one and checking the link on there isn't really an
option.

i appreciate any help anybody can give me
thanks in advance
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top