Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object DataSource

Status
Not open for further replies.

nevets2001uk

IS-IT--Management
Jun 26, 2002
609
GB
I have an object data source on a page that fills a repeater to display a blog entry.

I would like to use one of the values (the title) that is returned by the data source outside of the repeater. Is there a way I can access either a value from the repeater or from the object datasource using code and assign it to the text of a label control?

Steve G (MCSE / MCSA:Messaging)
 
nevets - how about a variation of thread855-1178531.

 
I ended up using the following code to read a field from the datasource. I'm not sure if it's optimal but it worked :)

Dim dview As DataView = CType(obdsGallery.Select(), DataView)
Dim strTitle As String = dview(0).Item("Title").ToString() & " Gallery"

Steve G (MCSE / MCSA:Messaging)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top