This project is read-only.
1
Vote

Databinding using Dataset

description

Hi,
I just downloaded the dll and added the reference in the bin and web.config. However I am facing two (2) issues now as below:
  1. While building I am getting Ambigious reference errors for - <Style>, <Style2>, <Text> and <Text2>.
  2. Not able to bind data as below:
HTML
<asp:DropDownCheckBoxes ID="ddlCatagory_" runat="server" AddJQueryReference="True" UseButtons="True" UseSelectAllNode="True" AutoPostBack="false">
</asp:DropDownCheckBoxes>

.CS

public void BindAccountCatagory()
{
    DataTable ds = AS_Accounts.GetAccountCatagory();
    for (int i = 0; i < ds.Rows.Count; i++)
    {
        System.Web.UI.WebControls.ListItem item = new System.Web.UI.WebControls.ListItem(ds.Rows[i][0].ToString(), ds.Rows[i][1].ToString());
        ddlCatagory.Items.Insert(i, item);
        ddlCatagory_.Items.Insert(i, item);
    }
    ddlCatagory.Items.Insert(0, "-ALL-");
    ddlCatagory.DataBind();

    ddlCatagory_.DataSource = ds;
    ddlCatagory_.DataBind();
}
BindAccountCatagory() is being called on the pageload. ddlCatagory is a simple dropdown to which data is getting binded however ddlCatagory_ is the drop down check box to which data is not getting binded.

Please help.

Thanks,
Anirban

comments