sharedworld
Programmer
I need to generate on my asp page a dynamic if then, which means, that i have some updatables values on my database, i wan't open my database take the values and make something like this:
do while not rs.eof then
if vIf="" then
vIf="if instr(rs(""criteria""
,rs("brand"
)"
else
vIf=vIf & " and instr(rs(""criteria""
,rs("brand"
)"
end if
loop
if vIf<>"" then
vIf=vIf & vbcrlf & " then"
vIf=vIf & "response.write ""blabla"""
vIf=vIf & vbCrlf & "End if"
execute vIf
end if
something like this, is this possible?...
do while not rs.eof then
if vIf="" then
vIf="if instr(rs(""criteria""
else
vIf=vIf & " and instr(rs(""criteria""
end if
loop
if vIf<>"" then
vIf=vIf & vbcrlf & " then"
vIf=vIf & "response.write ""blabla"""
vIf=vIf & vbCrlf & "End if"
execute vIf
end if
something like this, is this possible?...