Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / October 2007

Tip: Looking for answers? Try searching our database.

Using an updatepanel inside repeater item

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jesper Rou - 19 Oct 2007 12:49 GMT
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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.