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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Santhosh Kumar JayaramanPosted Jun 29, 2012, 1:56 AM
Aamir KhanPosted Jun 29, 2012, 1:52 AM
Santhosh Kumar JayaramanPosted Jun 29, 2012, 1:49 AM
Aamir KhanPosted Jun 29, 2012, 1:41 AM
Santhosh Kumar JayaramanPosted Jun 29, 2012, 12:41 AM
Aamir KhanPosted Jun 29, 2012, 12:40 AM
Santhosh Kumar JayaramanPosted Jun 29, 2012, 12:35 AM
ddlItems.DataTextField="Name";//display in UI
ddlItems.DataValueField="ItemCode";//Saves this in DB
ddlItems.DataBind();