Thursday, August 9, 2018

Interest Calculation Online Web Application / Software



using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class CHECK_BOX_INTREST_CALCULATION : System.Web.UI.Page
{
      
    protected void CheckBoxSIMPLEINTREST_CheckedChanged(object sender, EventArgs e)
    {
        double DPrincipal = Convert.ToDouble(TextBox1.Text);
        double dRateOfIntrest = Convert.ToDouble(TextBox2.Text);
        double dTime = Convert.ToDouble(TextBox3.Text);

        double dSimpleIntrest=(DPrincipal*dRateOfIntrest*dTime)/100;
        if (CheckBoxSIMPLEINTREST.Checked == true)
        {
            TextBox4.Visible = true;
            TextBox4.Text = Convert.ToString(dSimpleIntrest);
        }
        else
        {
            TextBox4.Visible = false;
        }
    }  



}

No comments:

Post a Comment