Forums

ASP

This topic is locked

hide html textfield if session blank

Posted 28 Feb 2006 22:51:55
1
has voted
28 Feb 2006 22:51:55 Chip Cooper posted:
I'm trying to hide a textfield if a session is blank.
So far, I'm not hitting it right.

<input type="text" readonly="True" name="textboxWPID" size="55" value=<%= session("sessionWPID" %> <%If session("sessionWPID"="" then visible="false" %>>

Thanks!

Replies

Replied 02 Mar 2006 01:13:21
02 Mar 2006 01:13:21 Michael Behan replied:
<pre id=code><font face=courier size=2 id=code>
&lt;%If Session("sessionWPID"&lt;&gt;"" then %&gt;
&lt;input type="text" readonly="True" name="textboxWPID" size="55" value=&lt;%= session("sessionWPID" %&gt;&gt;
&lt;%End If%&gt;
</font id=code></pre id=code>
Replied 02 Mar 2006 05:31:25
02 Mar 2006 05:31:25 Chip Cooper replied:
Thanks Michael!

I finally got that figured out, and used pretty much what you'd suggested.

Thanks for the reply!

Reply to this topic