Tourist_Search
asked on
Input string was not in a correct format
Hi
Can anyone help with the title problem
I have a currency column in the db, when I add it to the site page and convert it to decimal then submit the form I receive the error.
Input string was not in a correct format
the text box is: <%# Math.Round(Double.Parse(Cu stDetails. FieldValue ("BidAmoun t", Container))).ToString("F") %>
I have no other server side code on the page.
Can anyone help with this problem
George
Can anyone help with the title problem
I have a currency column in the db, when I add it to the site page and convert it to decimal then submit the form I receive the error.
Input string was not in a correct format
the text box is: <%# Math.Round(Double.Parse(Cu
I have no other server side code on the page.
Can anyone help with this problem
George
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks x_com
You have had a busy day today
George
You have had a busy day today
George
Tourist_Search,
I'm glad if i could help.
x_com
I'm glad if i could help.
x_com
A little bit faster code would be:
<%# Math.Round(Convert.ToDoubl e (CustDetails.FieldValue("B idAmount", Container))).ToString("F") %>
<%# Math.Round(Convert.ToDoubl
ASKER
Thanks Avenger
I tried that but for some reason it would not work
George
I tried that but for some reason it would not work
George
try to view the value of that column (display it in a message box for example)
hth.
A.