Forums
 This topic is locked 
             Show hide/ layers based on condition not onclick
 Posted 30 Jun 2005  17:42:42 
  1 
     has   voted 
  30 Jun 2005  17:42:42 Chris Horsley posted: 
 DWMX | ASP | SQL Sever 2000Can anyone help me show or hide a layer/div based on a Testbox value or condition? I'm able to do it based on onClick etc. but need to show a form based on a textbox value.
Replies
 Replied 19 Jul 2005  16:23:08 
   19 Jul 2005  16:23:08 Erik Piisila replied: 
  Try this above your <div> tag 
**********************************
<% dim strShowForm
strShowForm = YourRecordsetName.Fields.Item("YourFieldName" .Value
.Value
' ABOVE IS ASSUMING YOU'RE PULLING A VALUE FROM A RECORDSET.
if strShowForm = "WhateverValue" then %>
*********************************************
add this after your </div> tag
****************************************
<% end if %>
*****************************************
do not include asterixes in your code
Edited by - steelerfan70 on 19 Jul 2005 16:24:08
  **********************************
<% dim strShowForm
strShowForm = YourRecordsetName.Fields.Item("YourFieldName"
 .Value
.Value' ABOVE IS ASSUMING YOU'RE PULLING A VALUE FROM A RECORDSET.
if strShowForm = "WhateverValue" then %>
*********************************************
add this after your </div> tag
****************************************
<% end if %>
*****************************************
do not include asterixes in your code
Edited by - steelerfan70 on 19 Jul 2005 16:24:08