function outputtax() { var tamount = parseFloat(document.getElementById('<%=txtpsubtotal.ClientID%>').value); var cash = parseFloat(document.getElementById('<%=txtpdiscount.ClientID%>').value); if (isNaN(tamount) != true && isNaN(cash) != true ) { document.getElementById('<%=txtPtotalamout.ClientID%>').value = Math.round(parseFloat(document.getElementById('<%=txtpsubtotal.ClientID%>').value) - parseFloat(document.getElementById('<%=txtpdiscount.ClientID%>').value)) return false; } } <asp:TextBox ID="txtPtotalamout" runat="server" ReadOnly="true"> </asp:TextBox>
objsupplyPL.totalamount = Convert.ToDouble(txtPtotalamout.Text.ToString());
protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack) { txtPtotalamout.Attributes.Add("readonly","readonly"); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)