In this blog we will know how to insert multiple CheckBoxList values to database in web.
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Insert_multiple_Value_CheckBoxList._Default" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:CheckBoxList ID="CheckBoxList1" runat="server">
<asp:ListItem>a</asp:ListItem>
<asp:ListItem>b</asp:ListItem>
<asp:ListItem>c</asp:ListItem>
</asp:CheckBoxList>
</div>
<asp:Button ID="btn_insert" runat="server" Text="Insert"
onclick="btn_insert_Click" />

sreekanth uppalaPosted Jan 3, 2020, 7:42 AM
How many time you opened the connection, if in a single shot only the whole data will go and sit in database
Leslie PalmerPosted Nov 7, 2019, 8:09 AM
I'm getting a "CS1061 C# 'object' does not contain a definition for 'Items' and no accessible extension method 'Items' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)" How do I resolve?