Hi all,
I have a peculiar problem in that I want to have an Ajax.Net update panel,
inside each item in a repeater.
Like so:
<repeater>
<itemtemplate>
<updatepanel>
<contenttemplate>
</contenttemplate>
</updatepanel>
</itemtemplate>
</repeater>
This works well enough, but a problem emerges when using DataBinding
expressions, like <%# DataBinder.Eval( Container.DataItem, "whatever" ) %>
The page fails with the somewhat logical error, that the updatepanel dosnt
contain a definition for DataItem.
I assume this is because the Container now points at the updatepanel.
Anyone have a workaround/fix for this?
- Jesper Rou / Creuna Denmark
Manish - 19 Oct 2007 14:18 GMT
could you please post a sample that replicates this issue?
Regards,
Manish
> Hi all,
>
[quoted text clipped - 22 lines]
>
> - Jesper Rou / Creuna Denmark
Jesper Rou - 23 Oct 2007 10:50 GMT
I found the answer myself.
Using the <%# Eval( "field" ) %> shorthand solves the problem.
- Jesper
> Hi all,
>
[quoted text clipped - 22 lines]
>
> - Jesper Rou / Creuna Denmark