Thursday, August 9, 2018

Check Box uses | Multiple selections Option in online software | web Applications | Sradha webcreations

Check Box uses | Multiple selections Option in online software | web Applications | Websites 
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_MAILBOX : System.Web.UI.Page
{
    string sName;
    string sdob;
   
    protected void CheckBoxSPORTS_CheckedChanged(object sender, EventArgs e)
    {
        string sname = TextBox1.Text;
        string sdob = TextBox2.Text;
        if (CheckBoxSPORTS.Checked == true)
        {
            TextBox3.Visible = true;
            TextBox3.Text = "SPORTS";
        }
        else
        {
            TextBox3.Visible = false;
        }
    }
    protected void CheckBoxDANCING_CheckedChanged(object sender, EventArgs e)
    {
        string sname = TextBox1.Text;
        string sdob = TextBox2.Text;
        if (CheckBoxSPORTS.Checked == true)
        {
            TextBox4.Visible = true;
            TextBox4.Text = "DANCING";
        }
        else
        {
            TextBox4.Visible = false;
        }
    }
   
    protected void CheckBoxTRAVELLING_CheckedChanged1(object sender, EventArgs e)
    {
        string sname = TextBox1.Text;
        string sdob = TextBox2.Text;
        if (CheckBoxSPORTS.Checked == true)
        {
            TextBox5.Visible = true;
            TextBox5.Text = "TRAVELLING";
        }
        else
        {
            TextBox5.Visible = false;
        }
    }
    protected void CheckBoxSINGING_CheckedChanged1(object sender, EventArgs e)
    {

        string sname = TextBox1.Text;
        string sdob = TextBox2.Text;
        if (CheckBoxSPORTS.Checked == true)
        {
            TextBox6.Visible = true;
            TextBox6.Text = "SINGING";
        }
        else
        {
            TextBox6.Visible = false;
        }
    }
}

No comments:

Post a Comment