How to get value from database of single in two text boxes
How to get value from database of single cell in two text boxes
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
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jan 9, 2014, 10:41 PM EST
Dont duplicate the question.
http://www.c-sharpcorner.com/UploadFile/d0a1c8/database-programming-with-ado-net/
http://www.c-sharpcorner.com/UploadFile/b8d90a/connect-oledb-database-in-C-Sharp-in-easy-steps/
SUNIL GUTTARank #1,832 · 810 reputationPosted Jan 13, 2014, 5:02 AM EST
Same process opted in the previous question but use EXECUTE SCALAR in place of EXECUTE READER just becoz you saying you need single cell .. so scalar does the trick . finally store the execute scalar in some varuable like
string s = commandobject.executescalar();
later in page load textbox1.text=textbox2.text=s;
---Mark it best answer if you feel it as best LoL---