clearing checkboxlist
<p>on my save button i want to clear all values of form i did the following for CheckBoxList beach.</p>

<p>But it doesn't work. Why so, it doesn't make values clear for checkbox list </p>

<p>Branch is filled like this: </p>

<pre><code>protected void course_SelectedIndexChanged(object sender, EventArgs e)
{
    try
    {
        int courseId = Convert.ToInt32(course.SelectedValue);
        DataTable dt;
        dt = placementManager.GetBranchList(courseId);
        if (dt.Rows.Count != 0)
        {
            Branch.DataSource = dt;
            Branch.DataTextField = "branch_name";
            Branch.DataValueField = "branch_id";
            Branch.DataBind();                
        }
        Btnsave.Visible = false;
        GridView1.Visible = false;
    }
    catch (Exception ex)
    {
        COMMON.logger.Error("Error on course_SelectedIndexChanged:CompanySelected.aspx.cs", ex);
    }

    if (b)
    {
        gridNotExist.Text = "Records Successfully inserted for the displayed table, To insert new records select new entries";
        this.ViewState.Remove("selectedList");
        this.ViewState.Remove("dt");
        Session.Abandon();
        passout.SelectedIndex = 0;
        company.SelectedIndex = 0;
        txtpackage.Text = "";
        course.SelectedIndex = 0;

        Branch.DataSource = null;
        Branch.DataBind();
        vistDate.Text = "";
        txtvenue.Text = "";
        //GridView1.Visible = true;
    }
}
</code></pre>

<p>aspx page has, of course, branch like this:  </p>

<pre><code>&lt;asp:UpdatePanel id="update" runat="server"&gt;
     &lt;contenttemplate&gt;
         &lt;td&gt;
             &lt;asp:DropDownList ID="course" runat="server" AutoPostBack="True" OnSelectedIndexChanged="course_SelectedIndexChanged" /&gt;
             &lt;asp:CustomValidator ID="coursenecessaryForSaveButton" runat="server" ControlToValidate="course" ErrorMessage="Select A Course" OnServerValidate="coursenecessaryForSaveButton_ServerValidate" ValidationGroup="save" /&gt;
         &lt;/td&gt;
         &lt;td&gt;
             &lt;asp:CustomValidator ID="courseNecessary" runat="server" ErrorMessage="Select A Course" OnServerValidate="courseNecessary_ServerValidate" ValidationGroup="verify" /&gt;
         &lt;/td&gt;
         &lt;td style="width: 101px"&gt;
             Branch Name*
         &lt;/td&gt;
         &lt;td style="width: 126px"&gt;                        
             &lt;asp:CheckBoxList id="Branch" runat="server" /&gt;
         &lt;/td&gt;
    &lt;/contenttemplate&gt;    
&lt;/asp:UpdatePanel&gt;
</code></pre>
