المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : problem with sqldatareader



C# Programming
03-30-2009, 03:30 PM
itemcode and price are the fields in the table and i use sqldatareader to retreive data, when trying to do this using datareader.getstring(0) it works , but when call datareader.getfloat(1) it gives the exception Specified cast is not valid. i store the price as a float;

what might be the problem