Hi,
I'm reasonably new to ASP and I am trying to maintain somebody else's code. I was wondering if anybody had seen anything like the following before. I am about 70% certain this bit of code prevents certain users from accessing whichever page this is written on. It is at the top of all security sensetive pages. I'm not exactly sure how it does it.
Anyone got any ideas?
Thanks for any help,
Robin
on error resume next
sSQL = "EXEC sp_GetStations"
Set rsStations = g_Conn.Execute(sSQL)
if err.number <> 0 then
if Err.Number =-2147217911 then
Response.Write "<p>You do not have permission to view this page.<p>"
Response.End
else
Response.Write "<p>" & Err.number & "<p>"
Response.Write "<p>" & Err.Description & "<p>"
Response.Write "<p>" & Err.Source & "<p>"
Response.End
end if
end if
I'm reasonably new to ASP and I am trying to maintain somebody else's code. I was wondering if anybody had seen anything like the following before. I am about 70% certain this bit of code prevents certain users from accessing whichever page this is written on. It is at the top of all security sensetive pages. I'm not exactly sure how it does it.
Anyone got any ideas?
Thanks for any help,
Robin
on error resume next
sSQL = "EXEC sp_GetStations"
Set rsStations = g_Conn.Execute(sSQL)
if err.number <> 0 then
if Err.Number =-2147217911 then
Response.Write "<p>You do not have permission to view this page.<p>"
Response.End
else
Response.Write "<p>" & Err.number & "<p>"
Response.Write "<p>" & Err.Description & "<p>"
Response.Write "<p>" & Err.Source & "<p>"
Response.End
end if
end if