473,385 Members | 2,044 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,385 software developers and data experts.

Nested Repeaters ItemCommand not firing

I have a nested repeater situation with a Link Button on the nested
repeater. However when the link button is clicked I get a postback but the
event never takes place.

I'm trying to wire up the nested repeaters ItemCommand event in the
ItemDataBound of the outer repeater. I have even tried sharing the Outer
repeaters ItemCommand event but it still does not fire.

I'm missing a trick here, can you tell me what it is?


Jun 28 '07 #1
2 4925
"Josh" <s@a.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>I have a nested repeater situation with a Link Button on the nested
repeater. However when the link button is clicked I get a postback but the
event never takes place.

I'm trying to wire up the nested repeaters ItemCommand event in the
ItemDataBound of the outer repeater. I have even tried sharing the Outer
repeaters ItemCommand event but it still does not fire.

I'm missing a trick here, can you tell me what it is?
Usually, this type of problem is caused by the link button having a
different ID before and after the postback, in case of which its events will
not fire.
Possibly, some controls are added or removed during the postback, which
might cause this id shift.

To check whether indeed this is the case, set Trace=True in the page
directive, and check the control tree to see if the link button's id is the
same.
Maybe this will lead you to a solution.

It's a common problem with dynamically created controls.

Riki
Jun 28 '07 #2
And you don't accidentally bind in Page_Load without IsPostBack check?
Databinding on every request is common reason for event issues with
databound controls.

--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net
"Josh" <s@a.comwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>I have a nested repeater situation with a Link Button on the nested
repeater. However when the link button is clicked I get a postback but the
event never takes place.

I'm trying to wire up the nested repeaters ItemCommand event in the
ItemDataBound of the outer repeater. I have even tried sharing the Outer
repeaters ItemCommand event but it still does not fire.

I'm missing a trick here, can you tell me what it is?




Jun 28 '07 #3

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

Similar topics

3
by: DonRex | last post by:
Hello all! I couldn't find a web application-newsgroup for ASP.NET, so I'm sorry if this is the wrong forum! Synopsis: In my webform I have 3 nested repeaters: rpWeeks ----- rpTime
4
by: Steven | last post by:
Hi there, I am having a weird problem. I have a datagrid with both an ItemCommand and a SortCommand. It was working fine until a day ago. Now, whenever I click a column to fire the...
0
by: Machi | last post by:
let say in parent-child scenerio (Product: Product Category - one product category may has many products), i am using nested repeaters where parent repeater will be used to display info and child...
0
by: Patrik Persson | last post by:
Hello all I have got a problem with a nested repeater and the ItemCommand Event. I am adding handler for the ItemCommand and ItemBound. The ItemBound works perfect but I cant seem to get the...
2
by: Deepesh | last post by:
Good day, I have a specific case of the DataGrid in my solution which is causing the ItemCommand Event Not Firing. So I'm creating a "Skinnable" set of controls. I seperate the actual ASCX file...
2
by: Curt_C [MVP] | last post by:
I've got a Repeater and within it a LinkButton. The LinkButton has an CommandName="Test" In the Repeater's ItemCommand event I want to check for this command name but the problem I'm having is...
1
PrinsonG
by: PrinsonG | last post by:
My Query is How do I export to excel/csv using Nested Repeaters. My project is web-based and i am using C#.Net. In this i use three repeaters. one displays ID, Name of the user. second...
1
by: andrew.douglas11 | last post by:
Hello all, Is it possible to share controls inside a child repeater? Here's the situation: I have a web page that needs to display data grouped by A, and alternatively by B (only one grouping...
3
by: Leon Mayne | last post by:
If I have a datatable which looks like this: Record Id, Group Id, Name 1, 1, Test 1 2, 1, Test 2 3, 2, Test 3 4, 3, Test 4 Is it possible to use nested repeaters to group the information by...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.