Wrox Programmer Forums
|
BOOK: Beginning ASP.NET Databases Also see the forum ASP Databases for more general discussions of ASP database issues not directly related to these books.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 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 July 29th, 2006, 03:42 PM
Authorized User
 
Join Date: Apr 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to conditionally test results

What is the best solution for displaying on a web page page a
collection of records in where each record is to be conditionally
tested and then have their displays formatted according to the
results.

Example: A series of 50 records is retrieved from database consisting of a company name, company phone number and state. Also included in each record is a season code. Task is to display the company name, state and conditionally display the phone number. In cases where the records season code matches a predefined value the company name will appear in bold type and the phone number will display.

Do any of the .net 2.0 data controls allow you to conditionally format the appearance of record components as they are written to the
webpage?

 
Old November 25th, 2006, 01:08 PM
Registered User
 
Join Date: Nov 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would tend to believe an If, then, Else, loop similiar to that of Visual Basic coding


If . . .then
  Else . . .
If . . . then
  Else
End If






Similar Threads
Thread Thread Starter Forum Replies Last Post
conditionally setting variable ewel Beginning PHP 2 December 13th, 2007 07:39 PM
conditionally selecting buttons R4addZ Visual Basic 2005 Basics 3 July 13th, 2007 04:26 PM
Conditionally display text mister_mister XSLT 6 March 9th, 2007 11:02 AM
Conditionally display text object leo_vinay Crystal Reports 1 April 18th, 2006 07:22 AM
Prefix zero conditionally: A newbie question soorya Access VBA 2 October 18th, 2004 12:17 PM





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