Problems displaying values using datasets

G

Geraldine

In ASP when I have columns with data that I wanted display differently from
the values in the table it was a simple process.

I'd read the value from the recordset and then process the value with a
conditional statement then display in the HTML table the output I wanted the
user to see.

For example: if my Temperature column contained values between 0 - 15 I'd
render COLD 16 - 20 WARM 21 - 50 HOT.

In ASP.NET its relatively easy to populate a dataset and bind it to a
datagrid .. but how can I conditionally modify the values like in did in the
good old ASP days.

What is the easiest way to do such a task.


Cheers Taco Bill.
 
R

ravi sankar

I normally try to format the output at SQL level itself,
using the 'Case' key word in the select statement.
My second option is to use Item On bound event.
With the combination of above two, i m sure u will feel
ASP.Net more flexiable and easy than ASP itself

regards,
s.ravi sankar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top