Wrox Programmer Forums
|
Classic ASP Databases Discuss using ASP 3 to work with data in databases, including ASP Database Setup issues from the old P2P forum on this specific subtopic. See also the book forum Beginning ASP.NET Databases for questions specific to that book. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Databases 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:29 AM
Registered User
 
Join Date: Apr 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default if statment

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, 09:20 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 326
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to Santhi Send a message via MSN to Santhi
Default

if (IsNull(ebayid) == false)
 <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

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

Please do not cross post..please

http://p2p.wrox.com/topic.asp?TOPIC_ID=28689






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with IIF Statment Corey Access 2 December 14th, 2006 11:10 AM
What is wrong with this update statment ? method SQL Server 2000 2 April 23rd, 2005 04:45 AM
PROBLEM WITH INSERT STATMENT sanjeet General .NET 1 February 4th, 2005 09:39 AM
SQL Statment btpoole VB Databases Basics 1 February 18th, 2004 01:03 PM
SQL statment arshad mahmood VB Databases Basics 1 July 1st, 2003 02:10 PM





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