I am working on a cart system right now. I have finished the Control Layer and I am in the Visual Layer or my coding. But here is my problem.
In the Cart.asp(This is the Visual File with the HTML formatting) I include Cart_Code.asp(the control layer of the design). In Cart_Code.asp I include Coupon_Code.asp (a module I wrote that determines the values of coupons using a different table in the database). In Coupon_Code.asp there is a variable called alertUserOfThis (which is a string). I am trying to print it in Cart.asp, to alert the user of whatever the error was. However, this doesn't work and I get a "Variable is Undefined" error. Even though alertUserOfThis is both defined and initialized in Coupon_Code.asp.
So I guess my question is, "Can you access variables that are included in included files, in asp ?"
In the Cart.asp(This is the Visual File with the HTML formatting) I include Cart_Code.asp(the control layer of the design). In Cart_Code.asp I include Coupon_Code.asp (a module I wrote that determines the values of coupons using a different table in the database). In Coupon_Code.asp there is a variable called alertUserOfThis (which is a string). I am trying to print it in Cart.asp, to alert the user of whatever the error was. However, this doesn't work and I get a "Variable is Undefined" error. Even though alertUserOfThis is both defined and initialized in Coupon_Code.asp.
So I guess my question is, "Can you access variables that are included in included files, in asp ?"