I have 2 issues as shown in the code below in RED
Response' is not declared. It may be inaccessible due to its protection level..
Session' is not declared. It may be inaccessible due to its protection level.
Seesion vars don't work in modules either.
I want to be able to show a popup error window if there is something wrong in sub or function in a module. I have a majority of my code in the module since I call Stored Procedures and a lot of functions I created.
Response' is not declared. It may be inaccessible due to its protection level..
Session' is not declared. It may be inaccessible due to its protection level.
Seesion vars don't work in modules either.
I want to be able to show a popup error window if there is something wrong in sub or function in a module. I have a majority of my code in the module since I call Stored Procedures and a lot of functions I created.
Code:
Private Function ErrorTrap(ByVal ModuleCameFrom, ByVal ErrorMesssage, ByVal ErrorTitle)
Dim strJScript As String
strJScript = "<script language=javascript>"
strJScript += "window.open('ErrorScreen.aspx',null,'height=150, width=430,status= no, resizable= no, scrollbars=no, toolbar=no,location=center,menubar=no, top=100, left=300');"
strJScript += "</script>"
[COLOR=red] Response.Write(strJScript) [/color]
ErrorTrap = WriteToEventLog(ModuleCameFrom, ErrorMesssage, [COLOR=red]Session("UserLastName"), Session("UserFirstName")[/color])
End Function
[/code
DougP