Search found 1 match

by wijjkey
Wed 12 Oct 2011 13:46
Forum: dotConnect for Oracle
Topic: ASP.NET DataSet Connection String with Impersonation
Replies: 3
Views: 2641

I'm using a DataSet to retrive data from a Database and access the values of the columsn returned. I then want to set the Text of various labels to the values of the columns. To do this I use to code below

appID.Text = dsAppData.Tables[0].Columns[0].ToString();
appName.Text = dsAppData.Tables[0].Columns[1].ToString();
gripsID.Text = dsAppData.Tables[0].Columns[2].ToString();

The problem is that it sets the text of the labels to the column names and not the values. Am I using the wrong code? Thanks