Hi,

I have form which is have texbox,radiobutton and chechboxlist.I succesfully to insert the form but my problem is I can't updating my checkboxlist.I set checkboxlist to my db is integer means I get the value 0 or 1.
here i give my sample code form.

<tr>
                        <td align="center" style="font-size: small" class="style18">
                            <strong>Open New Incident
                        </strong>
                        </td>
               </tr>
                            </table>                            
                    <table border="0" class="style1">
                    <br />
                    <tr>
                        <td class="style3">
                            <asp:RadioButtonList ID="rbtnTypeCust" runat='server' DataSourceID="" 
                                DataTextField="Log_TypeCust" DataValueField="typeID" Width="171px" 
                                RepeatDirection="Horizontal" AutoPostBack="true" Height="31px" 
                                style="color: #000000">                               
                                  <asp:ListItem  Text="Client" Selected="True"></asp:ListItem>
                                            <asp:ListItem  Text="Remisier"></asp:ListItem></asp:RadioButtonList></td>
                        <td class="style3">
                        </td>
                        <td class="style3">
                            </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Name  :</td>
                        <td class="style11">
                            <asp:TextBox ID="txtName" runat="server" Width="256px" Height="22px" 
                                AutoPostBack="True"></asp:TextBox>
                        </td>
                        <td class="style3">
                             </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Code   :</td>
                        <td class="style11">
                            <asp:TextBox ID="txtcode" runat="server" AutoPostBack="True"></asp:TextBox>
                        </td>
                        <td class="style3">
                             </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Contact No    :</td>
                        <td class="style11">
                            <asp:TextBox ID="txtContactNo" runat="server" Width="147px" AutoPostBack="True"></asp:TextBox>
                        </td>
                        <td class="style3">
                             </td>
                    </tr>
                    <tr>
                        <td class="style4">
                            Branch / Location     :</td>
                        <td class="style23">                        
                          <asp:DropDownList ID="ddlBranch" runat="server" Height="36px" 
                                              Width="224px" TabIndex="5" AutoPostBack="True">
                                              <asp:ListItem>TA - KL</asp:ListItem>
                                              <asp:ListItem>TA - SB</asp:ListItem>
                                              <asp:ListItem>TA - DU</asp:ListItem>
                                              <asp:ListItem>TA - MELAKA</asp:ListItem>
                                              <asp:ListItem>TA - IPOH</asp:ListItem>
                                              <asp:ListItem>TA - SIBU</asp:ListItem>
                                              <asp:ListItem>TA - KB</asp:ListItem>
                                              <asp:ListItem>TA - KCH</asp:ListItem>
                                </asp:DropDownList>
                        </td>                       
                    </tr>
                </table>
                            <br />
                            <table cellspacing="0" cellpadding="0" style="width: 100%">
                                <tr>
                                    <td class="style9" align="left">
                                        <strong>Part B- Application
                                    </strong>
                                    </td>
                                </tr>
                            </table>
                            <asp:RadioButtonList ID="rbtnTypeApp" runat="server" TextAlign="Right" RepeatLayout="Table"
                                            RepeatDirection="Horizontal" AutoPostBack="true">
                                            <asp:ListItem  Text="TA ONLINE" Selected="True"></asp:ListItem>
                                            <asp:ListItem  Text="MISL/TCLITE"></asp:ListItem>
                                            <asp:ListItem  Text="CQ MARKET/CQ TRADER"></asp:ListItem>
                                        </asp:RadioButtonList>
                            <table cellspacing="0" cellpadding="0" style="width: 100%">
                                <tr>
                                    <td width="15%" class="style9" align="left">
                                        <strong>Part C- Log Description
                                    </strong>
                                    </td>
                                </tr>
                            </table>
                            <table border=1 style="height: 214px; width: 764px" align="center">
                                    <tr>
                                        <th class="style24">
                                            Inquiry / Register
                                        </th>
                                        <th class="style19">
                                            Action/ Recovery        
                                                 </th>
                                            <th class="style14">
                                                Technical
                                            </th>
                                        </tr>
                    <tr>
   <td class="style20" align="left">
           <asp:CheckBoxList ID="ChkInquiry" runat="server" Width="125px" AutoPostBack="True">
                <asp:ListItem>Registration</asp:ListItem>
                <asp:ListItem>Trade</asp:ListItem>
                <asp:ListItem>Watchlist</asp:ListItem>
                <asp:ListItem>Charts</asp:ListItem>
                <asp:ListItem>News</asp:ListItem>
                <asp:ListItem>Odd Lot</asp:ListItem>
            </asp:CheckBoxList>
        </td>
        <td class="style16" align="left">
            <asp:CheckBoxList ID="ChkAction" runat="server" AutoPostBack="True">
                <asp:ListItem>Login ID Recovery</asp:ListItem>
                <asp:ListItem>Password Recovery</asp:ListItem>
                <asp:ListItem>Trading Pin recovery</asp:ListItem>
                <asp:ListItem>ActivateLogin</asp:ListItem>
                <asp:ListItem>Activate Trading</asp:ListItem>
                <asp:ListItem>Resend Validation Email</asp:ListItem>
            </asp:CheckBoxList>
        </td>
        <td class="style6" align="left">
            <asp:CheckBoxList ID="ChkTechnical" runat="server" AutoPostBack="True">
                <asp:ListItem>Price Feed</asp:ListItem>
                <asp:ListItem>Order Book</asp:ListItem>
                <asp:ListItem>Client Portfolio</asp:ListItem>
                <asp:ListItem>Online Reports</asp:ListItem>
                <asp:ListItem>Others; Please Specify</asp:ListItem>
            </asp:CheckBoxList>
        </td>
        <br />  
                    <table cellspacing="0" cellpadding="1" style="width: 100%">
                               <tr>
                                    <td class="style17" align="left">
                                        <strong> 
                                        <br />
                                        Remark/Others
                                    </strong>
                                     <br />
                                     <br />                                   
                                      <asp:TextBox ID="txtRemarks" 
                    runat="server" Width="758px" Height="72px" TextMode="MultiLine" AutoPostBack="True"></asp:TextBox>
                                                        </td>
                                    </tr>
                            </table>    
        <td>
    <table cellspacing="0" cellpadding="1" width="100%">
                    <tr>
                        <td width="15%" class="style2" align="left">
                            <strong>Part D- Action
                        </strong>
                        </td>
                    </tr>
                </table><br />
                <asp:TextBox ID="txtAction" 
        runat="server" Width="757px" Height="59px" TextMode="MultiLine" 
        AutoPostBack="True"></asp:TextBox>                                         
    <br />
    <tr>
     <td class="lblAction" align="left" style="width: 52px">
    </td>
    </tr>                                              
    <asp:RadioButtonList ID="rbnActionStatus" runat="server" AutoPostBack="true" 
        DataSourceID="" DataTextField="Log_Status" RepeatDirection="Horizontal" 
        Width="198px">
        <asp:ListItem Selected="True" Text="Close"></asp:ListItem>
        <asp:ListItem Text="Follow up required"></asp:ListItem>
    </asp:RadioButtonList>
    <asp:DropDownList ID="ddlLog" runat="server" 
        Height="56px" Width="182px" AutoPostBack="True">
    <asp:ListItem>-----Please Select-----</asp:ListItem>
    <asp:ListItem>SYIRA</asp:ListItem>
    <asp:ListItem>MOHSEIN</asp:ListItem>
    <asp:ListItem>LIM</asp:ListItem>
    </asp:DropDownList>
                                <br />
                                <br />

 <td align="left" valign="bottom" class="style68">
                                    <asp:Button ID="Updatebtn" runat="server" Text="Update" 
                    Width="78px" CommandName="Insert" onclick="Updatebtn_Click" 
        Height="31px" />                                    
                                    <asp:Button ID="ClearButton" runat="server" Text="Clear" 
                    Width="80px" CommandName="Clear" onclick="ClearButton_Click" Height="32px" />
                  </td>                               
                        </br>
                                                </td>
                    </tr>
  </table>

Anyone have any idea about how do I update my CheckBox List?

Thanks,

Syie

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.