Update error using DataFormatString

D

David C

I have a textbox (see below) that shows the data column from SqlDataSource
as currency.

<asp:TextBox ID="txtSalePrice" runat="server" Text='<%# Bind("SalePrice",
"{0:c}") %>' Width="125px"></asp:TextBox>


However, when I issue the UPDATE command it throws the exception error
below. How can I get around this?
Source: mscorlib

An unhandled exception occurred:

Message: Input string was not in a correct format.



David
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,175
Messages
2,570,942
Members
47,489
Latest member
BrigidaD91

Latest Threads

Top