I am assigning the contents of a text area to a session variable. If the user comes back to the page with the text area, I want to display the contents of the session variable, Eg:
<textarea name="address" rows="3" COLS="25">
<%=session("address"
%>
</textarea>
My problem is this, the first time the user visits this page and tabs to the text area, the cursor is on the second line of the text area. It looks like 1 character (maybe a new line char?) is being displayed for the null session variable. I've tried putting an 'if' statement around it like below, but it still displays the cursor on line 2:
<textarea name="address" rows="3" COLS="25">
<%
if session("address"
<> Null then
response.write session("address"
%>
end if
%>
</textarea>
Does anyone know what char is being displayed by a null session variable?
Thanks.
<textarea name="address" rows="3" COLS="25">
<%=session("address"
</textarea>
My problem is this, the first time the user visits this page and tabs to the text area, the cursor is on the second line of the text area. It looks like 1 character (maybe a new line char?) is being displayed for the null session variable. I've tried putting an 'if' statement around it like below, but it still displays the cursor on line 2:
<textarea name="address" rows="3" COLS="25">
<%
if session("address"
response.write session("address"
end if
%>
</textarea>
Does anyone know what char is being displayed by a null session variable?
Thanks.