Hi yogeshc,
I have created a sample which full fill your requirement
You need to modify it according to your need
MasterPage.master
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!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>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
Default.aspx
<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile="Default.aspx.cs" Inherits="_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div align="center">
<br />
<asp:CheckBox ID="chkBox1" Text="CheckBox1" Value="1" runat="server" />
<br />
<asp:CheckBox ID="chkBox2" Text="CheckBox2" Value="2" runat="server" />
<br />
<asp:CheckBox ID="chkBox3" Text="CheckBox3" Value="3" runat="server" />
<br />
<asp:CheckBox ID="chkBox4" Text="CheckBox4" Value="4" runat="server" />
<br />
<asp:CheckBox ID="chkBox5" Text="CheckBox5" Value="5" runat="server" />
<br />
<asp:CheckBox ID="chkBox6" Text="CheckBox6" Value="6" runat="server" />
<br />
<asp:CheckBox ID="chkBox7" Text="CheckBox7" Value="7" runat="server" />
<br />
<asp:CheckBox ID="chkBox8" Text="CheckBox8" Value="8" runat="server" />
<br />
<asp:CheckBox ID="chkBox9" Text="CheckBox9" Value="9" runat="server" />
<br />
<asp:CheckBox ID="chkBox10" Text="CheckBox10" Value="10" runat="server" />
<br />
<asp:CheckBox ID="chkBox11" Text="CheckBox11" Value="11" runat="server" />
<br />
<asp:CheckBox ID="chkBox12" Text="CheckBox12" Value="12" runat="server" />
<br />
<br />
<asp:Button ID="Button1" Text="Submit" runat="server" OnClick="Button1_Click" />
<br />
<asp:Label ID="lblBooleanValues" runat="server" />
</div>
</asp:Content>
Default.aspx.cs
protected void Button1_Click(object sender, EventArgs e)
{
string BooleanValues = "CheckBox1 :-" + chkBox1.Checked.ToString() + "<br />"
+ "CheckBox2 :-" + chkBox2.Checked.ToString() + "<br />" //using Checked property of CheckBox you can get the Values and access it.
+ "CheckBox3 :-" + chkBox3.Checked.ToString() + "<br />" // Checked property value returns boolean value so you need to convert it to string.
+ "CheckBox4 :-" + chkBox4.Checked.ToString() + "<br />"
+ "CheckBox5 :-" + chkBox5.Checked.ToString() + "<br />"
+ "CheckBox6 :-" + chkBox6.Checked.ToString() + "<br />"
+ "CheckBox7 :-" + chkBox7.Checked.ToString() + "<br />"
+ "CheckBox8 :-" + chkBox8.Checked.ToString() + "<br />"
+ "CheckBox9 :-" + chkBox9.Checked.ToString() + "<br />"
+ "CheckBox10 :-" + chkBox10.Checked.ToString() + "<br />"
+ "CheckBox11 :-" + chkBox11.Checked.ToString() + "<br />"
+ "CheckBox12 :-" + chkBox12.Checked.ToString();
lblBooleanValues.Text = BooleanValues;
}
Default2.aspx
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false"
CodeFile="Default2.aspx.vb" Inherits="Default2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<div align="center">
<br />
<asp:CheckBox ID="chkBox1" Text="CheckBox1" Value="1" runat="server" />
<br />
<asp:CheckBox ID="chkBox2" Text="CheckBox2" Value="2" runat="server" />
<br />
<asp:CheckBox ID="chkBox3" Text="CheckBox3" Value="3" runat="server" />
<br />
<asp:CheckBox ID="chkBox4" Text="CheckBox4" Value="4" runat="server" />
<br />
<asp:CheckBox ID="chkBox5" Text="CheckBox5" Value="5" runat="server" />
<br />
<asp:CheckBox ID="chkBox6" Text="CheckBox6" Value="6" runat="server" />
<br />
<asp:CheckBox ID="chkBox7" Text="CheckBox7" Value="7" runat="server" />
<br />
<asp:CheckBox ID="chkBox8" Text="CheckBox8" Value="8" runat="server" />
<br />
<asp:CheckBox ID="chkBox9" Text="CheckBox9" Value="9" runat="server" />
<br />
<asp:CheckBox ID="chkBox10" Text="CheckBox10" Value="10" runat="server" />
<br />
<asp:CheckBox ID="chkBox11" Text="CheckBox11" Value="11" runat="server" />
<br />
<asp:CheckBox ID="chkBox12" Text="CheckBox12" Value="12" runat="server" />
<br />
<br />
<asp:Button ID="Button1" Text="Submit" runat="server" OnClick="Button1_Click" />
<br />
<asp:Label ID="lblBooleanValues" runat="server" />
</div>
</asp:Content>
Default.aspx.vb
Protected Sub Button1_Click(sender As Object, e As EventArgs)
'using Checked property of CheckBox you can get the Values and access it.
' Checked property value returns boolean value so you need to convert it to string.
Dim BooleanValues As String = "CheckBox1 :-" + chkBox1.Checked.ToString() + "<br />" + "CheckBox2 :-" + chkBox2.Checked.ToString() + "<br />" + "CheckBox3 :-" + chkBox3.Checked.ToString() + "<br />" + "CheckBox4 :-" + chkBox4.Checked.ToString() + "<br />" + "CheckBox5 :-" + chkBox5.Checked.ToString() + "<br />" + "CheckBox6 :-" + chkBox6.Checked.ToString() + "<br />" + "CheckBox7 :-" + chkBox7.Checked.ToString() + "<br />" + "CheckBox8 :-" + chkBox8.Checked.ToString() + "<br />" + "CheckBox9 :-" + chkBox9.Checked.ToString() + "<br />" + "CheckBox10 :-" + chkBox10.Checked.ToString() + "<br />" + "CheckBox11 :-" + chkBox11.Checked.ToString() + "<br />" + "CheckBox12 :-" + chkBox12.Checked.ToString()
lblBooleanValues.Text = BooleanValues
End Sub
ScreenShot