Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   REPOST - Parent List Data Item! (http://www.velocityreviews.com/forums/t113974-repost-parent-list-data-item.html)

Adam Knight 11-21-2005 01:29 AM

REPOST - Parent List Data Item!
 
Hi all,

I am really trying to find a solution to this problem.

I have a pair of nested data lists.

I want to retrieve a current value out of the parent lists DataItem object
(?.?.Container.DataItem) , inside a template within the child list.
This happens while the page is databinding, obviously using
Container.DataItem for all other page values.

Can anyone help me with this?

No item is being selected in the parent list, so the selected index won't
achieve what i am after.

Cheers,
Adam



Adam Knight 11-21-2005 01:59 AM

Re: REPOST - Parent List Data Item!
 
Hi all,

This is one solution i have come up with..

It appears a little clumsy to me though???

<%#
CType(Container.Parent.Parent.Parent.Parent,DataLi stItem).DataItem("standard_id")
%>
If retrieves the CURRENT list item of the parent list..and accesses the
DataItem Object.

Cheers,
Adam

"Adam Knight" <adam@pertrain.com.au> wrote in message
news:e1iSasj7FHA.1416@TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> I am really trying to find a solution to this problem.
>
> I have a pair of nested data lists.
>
> I want to retrieve a current value out of the parent lists DataItem object
> (?.?.Container.DataItem) , inside a template within the child list.
> This happens while the page is databinding, obviously using
> Container.DataItem for all other page values.
>
> Can anyone help me with this?
>
> No item is being selected in the parent list, so the selected index won't
> achieve what i am after.
>
> Cheers,
> Adam
>





All times are GMT. The time now is 07:32 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57