Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hide HTML textfield when session object absent / blank 1

Status
Not open for further replies.

clanm

Programmer
Dec 26, 2005
237
US
Is it possible to suppress an HTML textfield and label if a session object is absent?

Thanks!
 
[tt]
[highlight]<% IF Len(Session("Foo")) > 0 THEN %>[/highlight]
Favorite Bar: <input type="text" name="bar">
[highlight]<% END IF %>[/highlight]
[/tt]
 
Thanks Sheco!

Here's what I used:
<html>
<!--Below if statement will hide the first table row if user doesn't use the Application - sessionWPID is blank -->
<% IF Len(Session("sessionWPID")) > 0 THEN %>
<tr align="center">

<td width="100%" height="9" valign="top" align="center">
<FONT FACE="Verdana, Arial, Helvetica">
<b>WP Identifier<br>
<input type="text" readonly="True" name="textboxWPID" size="55" value=<%= session("sessionWPID") %> >
</font></TD>
</tr>
<% END IF %>
</html>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top