<td align="right" style="height: 26px">价&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格:</td>
                     <td style="width: 258px; height: 26px;">
                         <asp:TextBox ID="tbPrice" runat="server" Text="¥"></asp:TextBox>
                     </td>
                     <td align="right" style="height: 26px; width: 56px;">折&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;扣:</td>
                     <td style="width: 231px; height: 26px;">
                         <asp:TextBox ID="tbDiscount" runat="server" Width="150px"></asp:TextBox>
                     </td>                                         
                 </tr>
                 <tr>
                    <td align="right">折&nbsp;&nbsp;后&nbsp;&nbsp;价:</td>
                     <td style="width: 258px">
                         <asp:TextBox ID="tbDiscountPrice" runat="server" onfocus="DiscountPrice();"></asp:TextBox>
                     </td> 
function DiscountPrice()
{
   var discountPrice = document.getElementById("tbDiscountPrice").value;
   var Price = document.getElementById("tbPrice").value.substring(1);
   var Discount = document.getElementById("tbDiscount").value;
   if(Price != "" && Discount != "")
   {
       discountPrice = Price * Discount/10;
       document.getElementById("tbDiscountPrice").value = "¥" + discountPrice
   }
   else
   {
       document.getElementById("tbDiscountPrice").value = "";
   }
}根据价格和折扣价,用JS自动生成折后价的数据,为什么存入折后价的数据到数据库的时候,总是不行啊!flyticket.DiscountPrice = Convert.ToInt32(tbDiscountPrice.Text.Substring(1))