protected void ImporteTextBox_TextChanged(object sender, EventArgs e)
 {
     if (ImporteTextBox.Text != "")
     {
         MontoTextBox.Text = FacturasBLL.CalcularSubTotal(ToDecimal(ImporteTextBox.Text)).ToString();
     }
     else
     {
         MontoTextBox.Text = "";
     }
 }
        private string SubTotal()
        {
            decimal monto = 0;

            foreach (var item in facturas.Detalle)
            //(List<FacturaDetalles>)ViewState["Detalle"])
            {
                monto += FacturasBLL.CalcularSubTotal(item.Importe);
            }

            return(MontoTextBox.Text = monto.ToString());
        }