Wrox Programmer Forums
|
SQL Server ASP Discussions about ASP programming with Microsoft's SQL Server. For more ASP forums, see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 1st, 2005, 08:27 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default If Statement

Hi all,

I am trying to create an if statement that checks to see if a field (ebayid) is set to <NULL>, if it is then the page does not display the following table, if it does contain something then it does display it.

<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4"><div align="center"><%= objRS("alternative_ebay")%></div></td>
</tr>
</table>

many thanks
 
Old April 1st, 2005, 11:06 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

<%
IF objRS("ebayid") <> '' Then
%>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td colspan="4"><div align="center"><%= objRS("alternative_ebay")%></div></td>
</tr>
</table>
<%
End IF
%>






Similar Threads
Thread Thread Starter Forum Replies Last Post
if/else statement mussa Beginning PHP 5 July 3rd, 2006 06:06 PM
What does the @ do in the following statement? kenn_rosie VB.NET 2002/2003 Basics 1 March 15th, 2006 12:20 PM
Like Statement Nitin_sharma Oracle ASP 2 May 10th, 2005 12:18 AM
Like Statement Nitin_sharma Oracle 4 February 12th, 2005 01:46 PM
Like statement Nitin_sharma Classic ASP Databases 7 February 1st, 2005 11:12 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.