|
|
 |
Re: FN-FORUM problem with hidden regions in asp/vbscript
date posted 9th January 2001 15:39
Hi Rob
Basically what you what to do is build your html page as a string first, and
the response.write it to the browser. This would allow you to detect if a
field is empty and if it is then you don't include that portion of text.
E.g
If rsDatabase("Name") "default value" Then
pageHTML = pageHTML & _
" " & _
" " & _
" Name:" & _
" " & rsDatabase("Name") & "" & _
"
End If
If rsDatabase("Address:") "default value" Then
pageHTML = pageHTML & _
" " & _
" " & _
" Address:" & _
" " & rsDatabase("Address:") & "" & _
"
End If
I don't know if you will be able to do this using Ultradev without dealing
with the raw code - but it will be good practice if you do.
Incidentatlly is there any reason why the persons details are going into the
db and then being pulled out? It would be better to pass the values between
the pages using dynamically written hidden fields and then only hit the DB
once when you've got all of the details (rather then after you get each
set). Also are you storing those details on a database permanantly? If so
you might well have to be registered with the data protection register.
HTH
Norman
|
 |
|