Hi,
I have a custom control which works as a pager: it's a RadListView in which each element is sort of a button which postbacks
This ascx is used in 2 projects; in the first one everything works like a charm: when a button is clicked, the event is raised and handled by the ascx
In the second one, however, something went wrong: clicking on the button does the postback, but does not fire because, I've discovered, the target isn't there no more
In practice, in project 1 the RadListView re-create its items (as stated here), while in the second one items are not created after the button's postback
Since the button isn't there, __EVENTTARGET is null and the event fails
Both projects are quite knotty, since have a main page, the pager ascx and the button (which is an hyperlink child class object), and I can't post'em publicly.. but a smaller project would of course work, such the project 1 does, so I can just wonder what went wrong without reproducing it
I think there's little I could broke since the ItemCreated should occur before the page_load, but clearly something is different and I don't know what could it be.. any ideas?
Thanks
I have a custom control which works as a pager: it's a RadListView in which each element is sort of a button which postbacks
This ascx is used in 2 projects; in the first one everything works like a charm: when a button is clicked, the event is raised and handled by the ascx
In the second one, however, something went wrong: clicking on the button does the postback, but does not fire because, I've discovered, the target isn't there no more
In practice, in project 1 the RadListView re-create its items (as stated here), while in the second one items are not created after the button's postback
Since the button isn't there, __EVENTTARGET is null and the event fails
Both projects are quite knotty, since have a main page, the pager ascx and the button (which is an hyperlink child class object), and I can't post'em publicly.. but a smaller project would of course work, such the project 1 does, so I can just wonder what went wrong without reproducing it
I think there's little I could broke since the ItemCreated should occur before the page_load, but clearly something is different and I don't know what could it be.. any ideas?
Thanks