Hi,
I am working on vb.net.When i try to bind data got from function to dropdownlist, its getting compiled successfully.But, iam unable to view the data.
CbxDisplayProject.DataSource = NewAdmin.getAllProjects()
CbxDisplayProject.DataTextField = "skillname"
CbxDisplayProject.DataValueField = "skillname"
CbxDisplayProject.DataBind()
Then i used displaymember and valuemember as,
CbxDisplaySkills.DataSource = NewAdmin.getAllSkills()
CbxDisplaySkills.DisplayMember = "skillname"
CbxDisplaySkills.ValueMember = "skillname"
CbxDisplaySkills.DataBind()
i am getting error as,
'DisplayMember' is not a member of 'System.Web.UI.WebControls.DropDownList'.
and 'ValueMember' is not a member of 'System.Web.UI.WebControls.DropDownList'.
Can someone help me in this regard?