Please find the below attachment and do the needful help
Problem inDropdown List From Database Table Using ASP.NET C#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Ramachandran MRank #2,660 · 522 reputationPosted Jan 23, 2020, 7:13 AM EST
drphandwheelsize.DataValueField = "id";
drphandwheelsize.DataValueField = ds.Tables[0].Columns["id"].ToString(); // to retrive specific textfield name
drphandwheelsize.DataSource = ds.Tables[0]; //assigning datasource to the dropdownlist
drphandwheelsize.DataBind();
Asma KhalidRank #160 · 14.7K reputationPosted Jan 23, 2020, 7:50 AM EST