G
Guest
Hi all,
I'm a newbie to C# and .NET, so please be gentle! My limited background is
in VBScript,ASP, and Access dbs.
I need to retrieve data from a SQL server db (8.0) to be displayed in a
table format on a web page. I also need to do some major calculations with
the numbers from the DB, and insert them into the table. ie, if (field =
something) then display a row of calculated values.
I've tried using a SqlDataReader, but it seems I can't format the numbers
the way I want them (it grabs the field value as an object and I can only
convert them to strings, but I need them as numbers). Datagrids are only good
with grabbing and displaying, without modifying the info much.
Maybe I'm just missing something with retrieving the fields as numbers using
sqldatareader...
Anyway, what's the best/easiest way to implement what I've described above?
Thanks in advance for any suggestions!
I'm a newbie to C# and .NET, so please be gentle! My limited background is
in VBScript,ASP, and Access dbs.
I need to retrieve data from a SQL server db (8.0) to be displayed in a
table format on a web page. I also need to do some major calculations with
the numbers from the DB, and insert them into the table. ie, if (field =
something) then display a row of calculated values.
I've tried using a SqlDataReader, but it seems I can't format the numbers
the way I want them (it grabs the field value as an object and I can only
convert them to strings, but I need them as numbers). Datagrids are only good
with grabbing and displaying, without modifying the info much.
Maybe I'm just missing something with retrieving the fields as numbers using
sqldatareader...
Anyway, what's the best/easiest way to implement what I've described above?
Thanks in advance for any suggestions!