D
Damien Kay
Hi,
I am relatively new to ASP.NET programming and have a problem with a web
form that I have developed:
I have a boolean variable which should be false when the application first
starts but which is set to true when I populate an array. I have an "Close
Window" command button which executes the following code:
Response.Write("<script>window.close();</script>")
If I close the form using the command button and then re-launch the
application everything works fine i.e. the variable is set back to false.
However, if I close the form by clicking the "X" in the top right corner and
re-launch the application the variable has retained it's true value from the
previous time the application was run.
Does anyone know why this is and how I can get around it?
Thanks in advance,
Damien.
I am relatively new to ASP.NET programming and have a problem with a web
form that I have developed:
I have a boolean variable which should be false when the application first
starts but which is set to true when I populate an array. I have an "Close
Window" command button which executes the following code:
Response.Write("<script>window.close();</script>")
If I close the form using the command button and then re-launch the
application everything works fine i.e. the variable is set back to false.
However, if I close the form by clicking the "X" in the top right corner and
re-launch the application the variable has retained it's true value from the
previous time the application was run.
Does anyone know why this is and how I can get around it?
Thanks in advance,
Damien.