Showing posts with label Interest calculate online software. Show all posts
Showing posts with label Interest calculate online software. Show all posts

Monday, August 20, 2018

how to create lone calculate and interest calculation software in asp.net | Sradha Webcreations

how to create lone calculate  and interest  calculation Online software in asp.net



LoneCalculation.aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="LoneCalculation.aspx.cs" Inherits="LoneCalculation" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        .style1
        {
            text-align: center;
        }
    </style>
</head>
<body style="font-weight: 700">
    <form id="form1" runat="server">
    <div>
   
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
        </asp:ToolkitScriptManager>
        <asp:MultiHandleSliderExtender ID="multiHandleSliderExtender1"
            runat="server" TargetControlID="TextBox2"
 BehaviorID="multiHandleSliderOne" Minimum="1" Maximum="100" BoundControlID="TextBoxRateOfinterest" Steps="50" Length="150" TooltipText="{0}">         

        </asp:MultiHandleSliderExtender>
        <br />
        <table align="center" >
            <tr>
                <td colspan="2" class="style1">
                    Loan Calculation</td>
            </tr>
            <tr>
                <td>
                    Enter Loan Amount</td>
                <td>
                    <asp:TextBox ID="TextBoxLoanAmount" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    Select Rate of interest</td>
                <td>
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                </td>
            </tr>
           
            <tr>
                <td>
                    Rate of Interest</td>
                <td>
                    <asp:TextBox ID="TextBoxRateOfinterest" runat="server"
                        ontextchanged="TextBox3_TextChanged"></asp:TextBox>
                </td>
            </tr>
            <tr>
               
                <td>
         <asp:Button ID="ButtonCalculate" runat="server" style="font-weight: 700"
                        Text="calculate" onclick="ButtonCalculate_Click" />
                </td>
            </tr>
            <tr>
                <td>
                    Total
                    interest Amount</td>
                <td>
                    <asp:TextBox ID="TextBoxToTalInterest" runat="server"></asp:TextBox>
                </td>
            </tr>
           
        </table>
   
    </div>
    </form>
</body>
</html>
LoneCalculation.aspx.cs

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


public partial class LoneCalculation : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ButtonCalculate_Click(object sender, EventArgs e)
    {
        double dLoan;
        double dinterest;
        double dTotalInterestAmount;

        dLoan = Convert.ToDouble(TextBoxLoanAmount.Text);
        dinterest = Convert.ToDouble(TextBoxRateOfinterest.Text);
        dTotalInterestAmount = dLoan * dinterest / 100;
        TextBoxToTalInterest.Text = Convert.ToString(dTotalInterestAmount);
    }
    protected void TextBox3_TextChanged(object sender, EventArgs e)
    {
        double dLoan;
        double dinterest;
        double dTotalInterestAmount;

        dLoan = Convert.ToDouble(TextBoxLoanAmount.Text);
        dinterest = Convert.ToDouble(TextBoxRateOfinterest.Text);
        dTotalInterestAmount = dLoan * dinterest / 100;
        TextBoxToTalInterest.Text = Convert.ToString(dTotalInterestAmount);
    }
}