I am working on an .asp project with several other programmers. I am somewhat familiar with .asp, but I am no expert. Here is my question:
In most cases, our method of moving variables among pages has been to use "variablename=request.form("variablename"". I have learned that this means "look at the last page you processed and find this value". We do not have to put anything on the previous page to make this work.
However, occasionally that does not work. In those cases, you must put "<input name="variablename" type="hidden" value="<%=variablename%>">" under the button that moves the user from the first page to the second page.
The thing I don't understand is...why do some variables require a "push", and others do not require it??? I can only determine whether to use the "<input name..." code by experimentation. If I use that code when it is NOT needed, I end up with two instances of the variable on the second page.
In most cases, our method of moving variables among pages has been to use "variablename=request.form("variablename"". I have learned that this means "look at the last page you processed and find this value". We do not have to put anything on the previous page to make this work.
However, occasionally that does not work. In those cases, you must put "<input name="variablename" type="hidden" value="<%=variablename%>">" under the button that moves the user from the first page to the second page.
The thing I don't understand is...why do some variables require a "push", and others do not require it??? I can only determine whether to use the "<input name..." code by experimentation. If I use that code when it is NOT needed, I end up with two instances of the variable on the second page.