This code looks pretty suspicious.
The browser message about "error on page" is probably in the status line. This tells me we're dealing with a client-side error.
On top of that:
Code:
Sub CheckBoxAppliaction_click()
Makes me really wonder too.
It looks like it is meant to be an event handler. Of course, there is no
click event in DHTML, the event you probably want is
onclick.
But then, you have some ASP code intermixed here:
Code:
if session("CheckBoxAppliactionVar") = "1" then
So we have one of two things going on. Either you are trying to use ASP constructs on the client side (such as
Session)
or you are trying to use client-side constructs in your ASP code (such as event-handler subroutines).
Neither one of these works.
You can't click on something in the web page and invoke ASP code (barring making a new page request, or
possibly using Remote Scripting technology).
You can't use Session variables in client code.