Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to display text from datareader field
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Trying to display text from datareader field
Miscellaneous
Thread ID:
00672730
Message ID:
00672730
Views:
26
I am trying to display a datareader field value in a text box on an ASP.Net form. Keep getting error "No data exists for the row/column." when it tries to execute the last line of code below. If I add a datagrid to the form and bind it to the reader it displays the data correctly so I know its there. YYYAAAHHHH!

Dim reader As System.Data.OleDb.OleDbDataReader
reader = OleDbCommand1.ExecuteReader()
TextBox4.Text() = reader.Item("hdesc")

Any input would be greatly appreciated...

Todd
The day you take complete responsibly for yourself, the day you stop making any excuses, thats the day you start to the top. - O.J. Simpson

Great advice from a questionable source...
Next
Reply
Map
View

Click here to load this message in the networking platform