Welcome Guest Search | Active Topics | Sign In | Register

Trigger control '' for Callback '' does not exist. Options
KoenL
Posted: Friday, November 16, 2007 1:40:15 AM
Rank: Member
Groups: Member

Joined: 11/16/2007
Posts: 13
Hi ,

I have a repeater with an image button. (.net c#)

This i do in my code behind in de ItemDataBound:

Code: C#
ImageButton deleteImage = (ImageButton)e.Item.FindControl("deleteImage");
                deleteImage.CommandArgument = String.Format("{0}/{1}/{2}", basketLine.Product.Family, basketLine.Product.Number, orderListId);
                EO.Web.CallbackTrigger trigger = new EO.Web.CallbackTrigger(deleteImage.ClientID, "deleteImage");
            OrderListCallbackPanel.Triggers.Add(trigger);


If the callbackpanel loads i get this error :

Trigger control 'rpProducts__ctl0_deleteImage' for Callback 'OrderListCallbackPanel' does not exist.

Any one ?
If you need more info , let me know.

Greetings
eo_support
Posted: Friday, November 16, 2007 6:02:53 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

You won't be able to do it that way. When the CallbackPanel searching for triggers, it searches within the CallbackPanel control's naming container. Since your image button is in a different naming container (the repeater itself implements INamingContainer), so it won't be able to find it.

You can use eo_Callback to trigger the Callback. Instead of using an ImageButton control, you can use regular HTML:

Code: HTML/ASPX
<img src="some_image.gif" onclick="eo_Callback('CallbackPanel1');"  />


That will also trigger the callback. For more information about eo_Callback function, check Client Side API Reference -> Global Functions in the help file.

Thanks


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.