Hi,
I am calculating discount at text changed event when user enters the discount%. To edit when i load the data from table using dataset i do not get the correct data as it is in the database. For ex if quantity is saved as 5000.00 in table and when i try to fetch it.. I am getting it as 500000. Instead of 5000.00. Is it because of text changed event? How do i resolve this?
If you already tried. then textchanged event is not the problem.
Problem is somewhere esle. What is the datatype of the column in sql server
Sir it is a decimal type
First convert the dataset value to decimal and then convert to string
I have tried even that
Then change the column datatype to float instead of decimal.
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.