G
Guest
Hi,
I am devloping one web application using .net framework 2.0.One page has
7 dropdown list control.When i update the values first bind the values to
the drop down llist then selected text using findbytext method.I got the
following error
ERROR: Cannot have multiple items selected in a DropDownList.
Coding is below
Me.ddlMaterial.DataSource = ds
Me.ddlMaterial.DataTextField = "Material
Me.ddlMaterial.DataTextField = "Material
Me.ddlMaterial.DataBind()
Dim Material As String = row("Material").ToString()
Me.ddlMaterial.ClearSelection()
Me.ddlMaterial.Items.FindByText(Material).Selected = True
how to solve the issue?
pls help.
Thanks and Regards
T.A.Krishna
I am devloping one web application using .net framework 2.0.One page has
7 dropdown list control.When i update the values first bind the values to
the drop down llist then selected text using findbytext method.I got the
following error
ERROR: Cannot have multiple items selected in a DropDownList.
Coding is below
Me.ddlMaterial.DataSource = ds
Me.ddlMaterial.DataTextField = "Material
Me.ddlMaterial.DataTextField = "Material
Me.ddlMaterial.DataBind()
Dim Material As String = row("Material").ToString()
Me.ddlMaterial.ClearSelection()
Me.ddlMaterial.Items.FindByText(Material).Selected = True
how to solve the issue?
pls help.
Thanks and Regards
T.A.Krishna