close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

ASP Hide text if recordset field is empty

Thread began 6/30/2010 3:19 am by karen.marley367377 | Last modified 7/14/2010 12:41 pm by Jason Byrnes | 2202 views | 3 replies |

karen.marley367377

ASP Hide text if recordset field is empty

I have an asp classic application and would like to hide some text if a recordset field is empty.

any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

<% If RecordsetName.Fields.Item("ColumnName").Value <> "" AND RecordsetName.Fields.Item("ColumnName").Value <> NULL Then %>
<%=(RecordsetName.Fields.Item("ColumnName").Value)%>
<% End If %>
Sign in to reply to this post

karen.marley367377

Hide text, asp

Thanks Jason,

I have applied this as follows:

<% If WADAProperties.Fields.Item("SizeMax").Value <> "TO" AND WADAProperties.Fields.Item("SizeMax").Value <> NULL Then %>
<%=(WADAProperties.Fields.Item("SizeMax").Value)%>
<% End If %>

but get an error message as follows:

Microsoft JScript compilation error '800a03ec'

Expected ';' If WADAProperties.Fields

Any ideas?

Sign in to reply to this post

Jason ByrnesWebAssist

That code use the ASP VB Script syntax. ASP Javascript is slightly different.

<% if (WADAProperties.Fields.Item("SizeMax").Value != "TO" AND WADAProperties.Fields.Item("SizeMax").Value != NULL) { %>
<%=(WADAProperties.Fields.Item("SizeMax").Value) %>
<% } %>
Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...