Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Mo*1 #1
only show pic if there is a record
Ive got an asp website which has a news function. it pulls through info and a
pic ref to a url on the server that in turn puts it onto a page.
My problem is that i only want to show this picture if there is a record in
that news item - at the moment its coming up as a broken picture link. Is there
a way of showing it only if that record in the table is filled in?
ive tried using the only show if... function but the record has info in it
with the details of the news anyway, so it thinks there is info in it when
picref if blank and the rest of the fields are filled in
anyone shed some light on this for me?
Mo*1 Guest
-
Show Record Horizontal
In Macromedia Dreamweaver MX 2004 we can only show Record Vetical using repeat. But one of my compatible web developer in my company show 3 record... -
"Show If" server behavior for a single record
Does anyone know if this is possible? For example... I have a record within a recordset that includes images, but if the field is empty I would... -
Show record based on time
I have a record in a DB with a start time and a stop time (their data types are set to datetime). i want to show the record if the current time... -
How to show record in new form by clicking on name
Hi All, I have a asp-build grid with some records. The name of a record is a {Link}. I want to be able to click on the link and open a new... -
Stop adding record in subform after record count = 1
Can someone help in in what to put after the THEN statment to allow one entry if the Record count is =>1 in the Before insert or should I set the... -
Manuel Socarras #2
Re: only show pic if there is a record
you can try:
If Not IsNull(picture_field) Then
'Show info
End If
HTH,
manuel
Mo*1 wrote:> Ive got an asp website which has a news function. it pulls through info and a
> pic ref to a url on the server that in turn puts it onto a page.
>
> My problem is that i only want to show this picture if there is a record in
> that news item - at the moment its coming up as a broken picture link. Is there
> a way of showing it only if that record in the table is filled in?
>
> ive tried using the only show if... function but the record has info in it
> with the details of the news anyway, so it thinks there is info in it when
> picref if blank and the rest of the fields are filled in
>
> anyone shed some light on this for me?
>Manuel Socarras Guest
-
Mo*1 #3
Re: only show pic if there is a record
unfortunatly it didnt work...ive got a hide if record is empty on the field,
but cant figure out how to put in the also hide if that field is empty...ive
put in the code you gave me but is this right? any help appreciated!
<% If Not RS_newsp.EOF Or Not RS_newsp.BOF Then %>
<% If Not IsNull("picref") Then %>
<img src="<%=(RS_newsp.Fields.Item("picref").Value)%>" width="148"
height="156">
<% End If %>
<% End If ' end Not RS_newsp.EOF Or NOT
RS_newsp.BOF %>
Mo*1 Guest
-
Manuel Socarras #4
Re: only show pic if there is a record
correct this line:
If Not IsNull(RS_newsp.Fields.Item("picref").Value) Then
Mo*1 wrote:> unfortunatly it didnt work...ive got a hide if record is empty on the field,
> but cant figure out how to put in the also hide if that field is empty...ive
> put in the code you gave me but is this right? any help appreciated!
>
> <% If Not RS_newsp.EOF Or Not RS_newsp.BOF Then %>
> <% If Not IsNull("picref") Then %>
> <img src="<%=(RS_newsp.Fields.Item("picref").Value)%>" width="148"
> height="156">
> <% End If %>
> <% End If ' end Not RS_newsp.EOF Or NOT
> RS_newsp.BOF %>
>Manuel Socarras Guest



Reply With Quote

