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.
|