Showing posts with label Check box uses in asp.net. Show all posts
Showing posts with label Check box uses in asp.net. Show all posts

Thursday, August 9, 2018

how ti create insurance website & application | Check box users in Asp.net | Sradha Webcreations

how ti create insurance website  & application
 Check box users in Asp.net

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_CHECKBOX : System.Web.UI.Page
{
   protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
    {
        String sName = TextBox1.Text;
        string sfathersName = TextBox2.Text;
        string sAddress = TextBox3.Text;
        string sPhoneNumber = TextBox4.Text;
        if (CheckBox1.Checked == true)
        {
          Label1.Text = "data accepted";
        }
        else
        {
           Label1.Text = "data IS NOT accepted";
        }
    }
    }




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;
        }
    }  



}