Problems displaying values using datasets

  • Thread starter Thread starter Geraldine
  • Start date Start date
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.
 
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
 
Back
Top