hi experts...seems like this should be really simple..i'm creating a datareader that will always return a known/static # of records...then looping thru it assigning values to an arraylist....i then want to turn around and manually assign the arraylist values to each of my dynamically created labels...something like this:
SqlDataReader dr = mycmd.ExecuteReader();
ArrayList ar = new ArrayList();
((Label) Page.FindControl("lbl_1")).Text = ar.ToString("c");
((Label) Page.FindControl("lbl_2")).Text = ar.ToString("c");
the values from the database are in decimal format by default....i need the value that i write to the label to be formatted as currency - everywhere else in the app, ToString("c") works fine...but using it in this context i get the error:
No overload for method 'ToString' takes '1' arguments
and the project won't compile....any idea why it's not working in this scenario?