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
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.
SUNIL GUTTAPosted Jan 13, 2014, 10:02 AM
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---
Jaganathan BantheswaranPosted Jan 10, 2014, 3:41 AM
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/