I have to build a form that is very variable. So i would like to write the HTML for the table out of the VB code. How can this be done?

It's like the way i do it in php, there i can easily check certain things and write out a part of a table depending on the checks i made in php...

for example for vb

dim i as boolean = true
if i then
'here i should find a way to write the html needed so it can be displayed on the site.

end if


all idea's are welcome..

thxs