PC Review


Reply
Thread Tools Rate Thread

How to display different data

 
 
=?Utf-8?B?bmVwdHVuZTNr?=
Guest
Posts: n/a
 
      15th Feb 2005
Here is what I'm trying to do, I have a database table with columns:

ColA ColB ColC ColD ColE
1 AAA BBB xxx yyy x
2 111 xxx 222 yyy y
....

I want to display in a web form ColA, ColB if the ColE of the row I'm
getting having value "x", display ColA, ColC if ColE="y".

So if user searches for row 1:

ColA AAA
ColB BBB

if user searches for row 2

ColA 111
ColC 222
ColD yyy

What is the best way to make it work? Do I need to have different data
controls and display one of them depending on the data returned (my real
problem will consist of quite a few cases)? (Is there a way of displaying the
data at the run time?) This just seems to be someting that is easy
accomplished in ASP but I don't know how to do it in aspx. Give me some
example code will really help.

TIA.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not plot a data series in a chart but still display in data table mebp Microsoft Excel Charting 1 19th Mar 2010 05:13 PM
Powerpoint display is cut off on data projector display. David-DEC Microsoft Powerpoint 1 16th Jan 2008 04:09 PM
Data Access Page: How do I display data from a filtered table? =?Utf-8?B?Sm9uYXRoYW4=?= Microsoft Access 0 9th Feb 2007 11:56 AM
Displaying Xml data in Treeview & AfterSelecting nodes display data in RichTextBox Guest Microsoft Dot NET 0 20th May 2005 08:13 AM
using Crystal Reports to display data in my dataset correctly (display the data I selected instead of all the data in table) JK Microsoft C# .NET 1 6th Sep 2003 10:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:27 PM.