473,394 Members | 1,722 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Unable to get DataItem for Repeater item in RepeaterItem.PreRender.

In the Repeater.ItemCreated handler, I am hooking the RepeaterItem.PreRender
method. This event fires when the RepeaterItem is being rendered, the
problem is that I want access to the DataItem that the RepeaterItem was
created from. Well, it appears the DataItem property is null in the
RepeaterItem.PreRender event. Why is this.

I have read about issues like this relating to Postbacks and ViewState, but
I am rebinding each time the page is requested.
Nov 19 '05 #1
1 2448
Without viewing your code, it's hard to say what's wrong.

Elton Wang

"Peter Rilling" wrote:
In the Repeater.ItemCreated handler, I am hooking the RepeaterItem.PreRender
method. This event fires when the RepeaterItem is being rendered, the
problem is that I want access to the DataItem that the RepeaterItem was
created from. Well, it appears the DataItem property is null in the
RepeaterItem.PreRender event. Why is this.

I have read about issues like this relating to Postbacks and ViewState, but
I am rebinding each time the page is requested.

Nov 19 '05 #2

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

Similar topics

0
by: Joel Cade | last post by:
I'm using a repeater to show the rows in a data table. I'd like the have a link button beside each row that removes the record, firing a client script function to prompt the user for confirmation,...
2
by: George Addison | last post by:
How do I test for the value of the repeater's item index: SOmething like: Select Case Container.ItemIndex if container.itemindex
2
by: ric carrasquilla | last post by:
first, thx to martin for helping me with my initial post. im a newbie and appreciate the help. if someone can help me with another question, please do. i have a repeater pulling job...
2
by: Michael Wendel | last post by:
Ok. I have been banging my head against the wall trying to figure out how this piece of display logic can be implemented: <% if (DataBinder.Eval(Container.DataItem, "SomeItem") != "SomeValue")...
1
by: Fred Dag | last post by:
I want to get the database table ID of a row in a Repeater that uses a PagedDataSource when OnTexctChanged event is fired. It seems that the DataSource property isn’t persisted when the event is...
1
by: Arpan | last post by:
Assume that a Repeater control displays 2 columns in a HTML table (i.e. using <tr><tdetc.) - Name & Phone no. All the items under the "Name" column are LinkButtons. To retrieve the index of the...
3
by: champ.supernova | last post by:
I have a repeater containing dropdownlists. This subroutine is called when the selected index on one of these dropdownlists is changed... Public Sub cmbProductType_SelectedIndexChanged(ByVal...
2
by: Jesper Rou | last post by:
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>
0
by: joelgarcia007 | last post by:
I really hope someone can help me with this because it's really driving me crazy. I need to dynamically display multiple data tables on a page so I am using a Repeater to do so and in the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.