Adam_Li
asked on
Display info from DB to Label in asp.net
Hi
Is there any simple way to display text from database to label in asp.net?
Is there any simple way to display text from database to label in asp.net?
"Label2".DataBindings.Add( "Text", DataSet1, "db.fname")
You will need to setup database connection, dataset, command and data adapter.
ASKER
You got an example of how code is written? Then its easier for me to get it right.
yes
For reference you can visit the below link :
http://stackoverflow.com/questions/22437348/displaying-database-record-on-a-label-in-vb-net
http://stackoverflow.com/questions/22437348/displaying-database-record-on-a-label-in-vb-net
ASKER
need for c#
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.