I see,
Container.DataItem is available only inside Repeater's template and only for
the request after DataBound is called. In practise means that you'd access
it from Repeater's ItemDataBound event in addition to the template itself
(e.g meaning that template accesses it via databinding expressions). So in
that sort it's not available. Repeater and itas child controls (in
templates) only have knowledge of its data and access to it
However, if you bind the Repeater say to a DataTable or a DataSet, you could
have the data source object (ds/dt) available via a public member on the
code-behind class so that repeater can bind to it, but the data is also
consumable. Means that you have a public member on the class, and you load
the dt(ds to it with ADO.NET). Repeater is then just one consumer for the
data. Or not being the only option, you could just access the data in
Page_Load etc before you bind the dt/ds to repeater and set Text's of
Label's and textBoxes before binding etc etc. Possibilities are endless.
If you want more concrete help, provide a sample of your code & scenario.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke