Hi Frnds,
i have a dropdown control.while displaying it i have to show the Item name...but while saving in the Database i have to save Item Code which is integer not the Item Name.
how can it be done.
Regards,
aamir
Hi Frnds,
i have a dropdown control.while displaying it i have to show the Item name...but while saving in the Database i have to save Item Code which is integer not the Item Name.
how can it be done.
Regards,
aamir
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
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jun 28, 2012, 8:35 PM EDT
ddlItems.DataTextField="Name";//display in UI
ddlItems.DataValueField="ItemCode";//Saves this in DB
ddlItems.DataBind();
Aamir KhanRank #7,345 · 243 reputationPosted Jun 28, 2012, 8:40 PM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jun 28, 2012, 8:41 PM EDT
Aamir KhanRank #7,345 · 243 reputationPosted Jun 28, 2012, 9:41 PM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jun 28, 2012, 9:49 PM EDT
Aamir KhanRank #7,345 · 243 reputationPosted Jun 28, 2012, 9:52 PM EDT
Santhosh Kumar JayaramanRank #563 · 4.3K reputationPosted Jun 28, 2012, 9:56 PM EDT