computergeek
Programmer
Hello,
I am trying to determine what state my form is currently in. (Add or Update) Within my btnAdd_Clicked() script I set the variable (Addtrans = true), then within the btnSave_Clicked() script I check this variable to determine whether to do an update or an insert to the table. The Addtrans variable is declared outside the 2 server side scripts right after the script tag for the server side scripts. HOW DO YOU DECLARE A VARIABLE THAT CAN BE USED THROUGHOUT THE PAGE BY ALL SERVER-SIDE SCRIPTS? (Cannot use Page Object, see note below.)
<SCRIPT ID=serverEventHandlersVBS LANGUAGE=vbscript RUNAT=Server>
Dim Addtrans
I have attempted to use the Page Object DTC on this page with no success. The problem is that it seems to automatically name the object...then name shows as an invalid name with an exclaimation mark. (!Site) This page was created using the site.asp page, renamed, and changes made as required.
Thanks,
Computergeek
I am trying to determine what state my form is currently in. (Add or Update) Within my btnAdd_Clicked() script I set the variable (Addtrans = true), then within the btnSave_Clicked() script I check this variable to determine whether to do an update or an insert to the table. The Addtrans variable is declared outside the 2 server side scripts right after the script tag for the server side scripts. HOW DO YOU DECLARE A VARIABLE THAT CAN BE USED THROUGHOUT THE PAGE BY ALL SERVER-SIDE SCRIPTS? (Cannot use Page Object, see note below.)
<SCRIPT ID=serverEventHandlersVBS LANGUAGE=vbscript RUNAT=Server>
Dim Addtrans
I have attempted to use the Page Object DTC on this page with no success. The problem is that it seems to automatically name the object...then name shows as an invalid name with an exclaimation mark. (!Site) This page was created using the site.asp page, renamed, and changes made as required.
Thanks,
Computergeek