If IsNull(RStemp("MELLANRUBRIK")) OR RStemp("MELLANRUBRIK") = "" then
.....
denna kanske hjälper :)
------------------
Korvfarbror--Med ring på fingret
2 svar · 138 visningar · startad av Sammy
Kan man inte använda sig av två If.. then satser på raken?
\<%
If IsNull(RStemp("MELLANRUBRIK")) then
Response.Write ""
Else
Response.Write "\<B\>\<FONT size=2\>" & RStemp("MELLANRUBRIK") & "\</FONT\>\</B\>\<BR\>\<BR\>"
End If
%\>
\<%
'If IsNull(RStemp("INLEDNING")) then
'Response.Write ""
'Else
Response.Write "\<B\>" & RStemp("INLEDNING") & "\</B\>\<BR\>\<BR\>"
'End If
%\>
När jag inte har (värdet är tomt i databasen) en 'mellanrubrik' blir det ett stort glapp (dvs två <BR> )?
Varför?
------------------
/Sammy Swärd
If IsNull(RStemp("MELLANRUBRIK")) OR RStemp("MELLANRUBRIK") = "" then
.....
denna kanske hjälper :)
------------------
Korvfarbror--Med ring på fingret
YES!
\<%
If IsNull(RStemp("MELLANRUBRIK")) OR RStemp("MELLANRUBRIK") = "" then
Response.Write ""
Else
Response.Write "\<B\>\<FONT size=2\>" & RStemp("MELLANRUBRIK") & "\</FONT\>\</B\>\<BR\>\<BR\>"
Response.Write "\<B\>" & RStemp("INLEDNING") & "\</B\>\<BR\>\<BR\>"
End If
%\>
Fick göra om lite (är nybörjare) men det fungerade! ;)
Tack så mycket!!!
------------------
/Sammy Swärd