PageA:
Comment = session.contents.item("Comment"
%>
<form name="myform" action="PageB"
<TEXTAREA name="Comment"><%=Comment%></TEXTAREA>
PageB:
session.contents.item("Comment" = request.form("Comment"
The user enters a comment and clicks submit. On PageB, the comment is assigned to a session variable. The user cancels and returns to pageA. The session variable (which now has the origin comment) is captured and reassigned to the forms textbox so that the visitor does not have to retype it.
HOWEVER, the above (PageA) does not work. The comment is not reassigned. That is... unless I access the variable "Comment" prior to the form:
PageA:
Comment = session.contents.item("Comment"
If Comment = "" then
'do absolutely nothing
End If
%>
When I add the If statement, everything starts working. A really wacko anomalie. Has anyone encountered this before? Can it be explained or is it a bug with ASP?
-KJB
Comment = session.contents.item("Comment"
%>
<form name="myform" action="PageB"
<TEXTAREA name="Comment"><%=Comment%></TEXTAREA>
PageB:
session.contents.item("Comment" = request.form("Comment"
The user enters a comment and clicks submit. On PageB, the comment is assigned to a session variable. The user cancels and returns to pageA. The session variable (which now has the origin comment) is captured and reassigned to the forms textbox so that the visitor does not have to retype it.
HOWEVER, the above (PageA) does not work. The comment is not reassigned. That is... unless I access the variable "Comment" prior to the form:
PageA:
Comment = session.contents.item("Comment"
If Comment = "" then
'do absolutely nothing
End If
%>
When I add the If statement, everything starts working. A really wacko anomalie. Has anyone encountered this before? Can it be explained or is it a bug with ASP?
-KJB