hi ...
javascript:
function calc() {
var qty=eval(document.getElementById('<%=txtnoofpack.ClientID %>').value);
var fre=eval(document.getElementById('<%=txtFregiht.ClientID %>').value);
var ha=eval(document.getElementById('<%=txthamai.ClientID %>').value);
var dd=eval(document.getElementById('<%=lblDDcharge.ClientID %>').value);
document.getElementById('<%=txtamt.ClientID %>').value = qty * fre + dd + ha;
var ser=eval(document.getElementById('<%=txtsertax.ClientID %>').value);
var am=eval(document.getElementById('<%=txtamt.ClientID %>').value);
if(am >= 750 )
{
document.getElementById('<%=txttot.ClientID %>').value = ser * am + am ;
}
else
{
document.getElementById('<%=txttot.ClientID %>').value = am ;
}
}
C#
this line error Input string was not in a correct format coming
objclsGCFormInsert.Total_amount = Convert.ToDecimal(txttot.Text);
in database total decimal(12,2) type declared
plz solve the problem..