473,473 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using an updatepanel inside repeater item

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
Oct 19 '07 #1
2 12953
could you please post a sample that replicates this issue?

Regards,
Manish
"Jesper Rou" wrote:
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
Oct 19 '07 #2
I found the answer myself.

Using the <%# Eval( "field" ) %shorthand solves the problem.

- Jesper
"Jesper Rou" <je****@rou.dkwrote in message
news:47***********************@news.sunsite.dk...
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


Oct 23 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kamaumalone | last post by:
I have a dropdownlist which lives inside of a repeater. The repeater accepts user input via textboxes and the aforementioned dropdownlist. The repeater accepts phone numbers and allows for an...
2
by: | last post by:
Hi I'm trying to have a drop down list inside a repeater where the data for the list is extracted from a database along with other items but I can't seem to get it to work for the list. My...
7
by: Scott Schluer | last post by:
Hi All, I have a functioning datagrid on "Page 1" that displays order information for a single order (this is for an e-commerce site). It's actually a combination of a couple datagrids to...
1
by: Bryan | last post by:
I trying to figure out out to validate a textbox inside a repeater once a person presses a button on a repeater. Here's the validation Code behind: Please be aware that line e.Item.ItemIndex...
1
by: Bennett Haselton | last post by:
If I have this code for repeater, it gives a compilation error saying "The type or namespace name 'MyValue2' could not be found": <asp:Repeater id="MyList" runat="server"> <ItemTemplate>...
3
by: Leigh Webber | last post by:
I have an HTMLAnchor control on my aspx page. When it's not inside a repeater, it works fine. When I put it inside a repeater control, the handler never gets fired. I have a handler for the...
8
by: fernandezr | last post by:
I would like to use a user control as a template inside a repeater. Some of the fields in the control should be hidden depending on whether or not there is data. I'm still a ASP .Net newbie so the...
1
by: Nitinkcv | last post by:
Hi, i have my button actually inside a repeater and it validates info from textboxes and ddl inside the repeater.. The prob is that i have "SELECT VALUE" chosen as the default value in my ddl. so...
0
by: =?Utf-8?B?S29uc3RhbnRpbg==?= | last post by:
I have a need to have a repeater inside update panel control which should update dynamically when "Update" button is clicked. I have repeater inside update panel control which takes custom...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.