Live Chat Icon For mobile
Live Chat Icon

I am running the query SQL=’Select name from profile where proID=1′; and I am getting the result in Dataset dsdata. How can I read the text from the dataset and assign it to textbox1.text ?

Platform: ASP.NET| Category: TextBox

VB.NET


Textbox1.Text= dsData.Tables(0).Rows(0)('FieldName').ToString()

C#


TextBox1.Text=dsData.Tables[0].Rows[0]['FieldName'].ToString();

Share with

Share on twitter
Share on facebook
Share on linkedin