Forums
This topic is locked
show region if session variable doesn't exist
Posted 02 Jul 2002 17:10:56
1
has voted
02 Jul 2002 17:10:56 Dave Clarke posted:
Hi I can use the advanced conditional region extension to make a region show if a session variable exists<b><% if (Session("MM_Username") { // Adv Conditional Region %></b>
but how can i make a region visible if a session variable does not exist??
asp/javascript/iis
think ive asked this before but cant find it now .. sorry
Replies
Replied 02 Jul 2002 19:24:36
02 Jul 2002 19:24:36 aegis kleais replied:
Replied 03 Jul 2002 07:54:47
03 Jul 2002 07:54:47 Dave Clarke replied:
Hi
Thanks aegiskleais
Tried putting the <b>!</b> in but now it gives this error
Error Type:
Microsoft JScript compilation (0x800A03ED)
Expected '('
/newreunite/TMP120dpyns6y.asp, line 584, column 3
this is the code in question, do i need to change anuthing else?
584 <% if !(Session("MM_Username") { // Adv Conditional Region %>
585<img name="signbut" border="0" src="graphics/join.gif" width="108" height="28">
586<% } // Session("MM_Username" %>
Dave
Thanks aegiskleais
Tried putting the <b>!</b> in but now it gives this error
Error Type:
Microsoft JScript compilation (0x800A03ED)
Expected '('
/newreunite/TMP120dpyns6y.asp, line 584, column 3
this is the code in question, do i need to change anuthing else?
584 <% if !(Session("MM_Username") { // Adv Conditional Region %>
585<img name="signbut" border="0" src="graphics/join.gif" width="108" height="28">
586<% } // Session("MM_Username" %>
Dave
Replied 03 Jul 2002 08:10:37
03 Jul 2002 08:10:37 Dave Clarke replied:
hi aegiskleais
me again, i think i have done it, added an extra pair of parentheses, seems to work now , changed your
<b>IF !(Session("MM_Username") { // Conditional Region }</b>
to
<b>IF (!(Session("MM_Username")) { // Conditional Region }</b>
Dave
me again, i think i have done it, added an extra pair of parentheses, seems to work now , changed your
<b>IF !(Session("MM_Username") { // Conditional Region }</b>
to
<b>IF (!(Session("MM_Username")) { // Conditional Region }</b>
Dave