Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Sep 06, 2011 05:12 PM|LINK
I have created a custom datapager control, part of the control I have added image buttons for the ability to tie in Add, Delete, Edit, and Search events. We use this control in conjunction with a Listview control via the PagerControlID property. When any
button is clicked it has OnClientEvent jquery code that allows us to control the actions via jquery dialogs. When the data is collected we then do the ___doPostBack(o.name,'') "o" being the button control that is passed in via the OnClientClick Event. We then
handle the OnPagerCommand and based on the CommandName of the button determine what event is to take place IE. Add, Delete,......
The listview is databound using an ObjectDataSource Control via Objects that are returned as List<T>'s. All seems to work fine when we have data but when no data is returned is where the issue resides.
This all seems to work well in a MasterPage, Page and Child Control situation but when we put the custom control on a page in a
Nested Masterpage the OnPagerCommand Event doesn't fire. Now to add even more confusion if we have records in the listview the OnPagerCommand gets the event and fires fine.
To add even more confusion, if the control is on a page with a Master Page it seems to work fine with or without records in the listview.
I think i have narrowed it down to be an issue with Nested Master Pages but do not have a resolution. Any help on this would be appreciated.