1

I want to show the following string result only if the session variable Session("PublicGID") is set:

<% = strDB_DirectoryBannerImage %>

How would I go about it?

1
  • Tired and not thinking right is not an excuse to have SO do your thinking for you. :-) Commented May 6, 2011 at 19:15

1 Answer 1

2

You could try something like this:

<%
If Session("PublicGID") <> "" Then
  Response.Write(strDB_DirectoryBannerImage)
End If
%>

Or, to be more compact:

<% If Session("PublicGID") <> "" Then Response.Write(strDB_DirectoryBannerImage) %>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.