Hi rakibxl,
Check this example. Now please take its reference and correct your code.
HTML
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<link href="https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap-toggle.min.css"
rel="stylesheet" />
<script type="text/javascript" src="https://gitcdn.github.io/bootstrap-toggle/2.2.2/js/bootstrap-toggle.min.js"></script>
<input type="checkbox" data-toggle="toggle" runat="server" id="chkSkypeCall" clientidmode="Static">
<asp:Button Text="Save" runat="server" OnClick="Save" />
C#
protected void Page_Load(object sender, EventArgs e)
{
// Get true or false value from databse.
bool checkedSkypeCall = true;
// Set true or false based on databse record.
chkSkypeCall.Checked = checkedSkypeCall;
}
protected void Save(object sender, EventArgs e)
{
//Get value as True and False depending on the selection.
ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert('" + chkSkypeCall.Checked + "')", true);
}
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
' Get true or false value from databse.
Dim checkedSkypeCall As Boolean = True
' Set true or false based on databse record.
chkSkypeCall.Checked = checkedSkypeCall
End Sub
Protected Sub Save(ByVal sender As Object, ByVal e As EventArgs)
' Get value as True and False depending on the selection.
ClientScript.RegisterClientScriptBlock(Me.[GetType](), "", "alert('" & chkSkypeCall.Checked & "')", True)
End Sub