hi all
my site is in classic asp and the "web.config" file contains the instruction for customize error 404 and 500 , like this :
<httpErrors errorMode="Custom">
<remove statusCode="404"/>
<error statusCode="404" path="https://www.tuttosuperenalotto.it/KO.ASP?e=404" responseMode="Redirect" />
<remove statusCode="500"/>
<error statusCode="500" path="https://www.tuttosuperenalotto.it/KO.ASP?e=500" responseMode="Redirect" />
</httpErrors>
Now when KO.ASP is started because an error occured can i get the page name that go in error ?
If it is possible how i can do this ?
KO.ASP code : (only ASP code)
<%
errore = request.querystring("e")
dispositivo = session("dispositivo_utente")
agente = Request.ServerVariables("HTTP_USER_AGENT")
breadcrumb = split(REQUEST.SERVERVARIABLES("URL"),"/")
ind = ubound(breadcrumb)
pagina = breadcrumb(ind)
g = mid(date(),1,2)
m = mid(date(),4,2)
a = mid(date(),7,4)
d = a & m & g
d = d / 1
cmdsql="insert into tab_errori values(" & d & ", '" & errore & "' ,'" & pagina & "','" & dispositivo & "','" & agente & "')"
set dbase = server.createobject("ADODB.connection")
dbase.open application("UTILITY")
DBASE.execute(cmdsql)
DBASE.CLOSE
%>
thanks to all
best regards
antonio