Home » FAQ » ASP.NET » ADO.NET » I am running the query SQL=’Select name from profile where proID=1′; and I am getting the result in Dataset dsdata. Now how do I read the text from the dataset and assign it to textbox1.text ?
VB.NET
dsData.Tables(0).Rows(0)('FieldName').ToString()
C#
dsData.Tables[0].Rows[0]['FieldName'].ToString()
Share with