Welcome Guest Search | Active Topics | Sign In | Register

Force the callback Options
dmacchia
Posted: Monday, April 28, 2008 1:06:51 AM
Rank: Member
Groups: Member

Joined: 10/15/2007
Posts: 23
Hello. I have a Treeview control inside a CallbackPanel. I would like the treeview to be updated with a newly created node. However, the trigger that needs to force the callback is inside a user control (ascx) that is loaded dynamically, so I can't just list it as a trigger in the CallbackPanel's properties.

Does that mean I need to force the callback in the CallbackPanel? If so, I tried the following, but it does not seem to work:

Code: Visual Basic.NET
Response.Write("<script>eo_Callback('" & controlName & "');</script>")


Thanks,
David
eo_support
Posted: Monday, April 28, 2008 6:04:18 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,218
eo_Callback should work. I don't think should use Response.Write though. Response.Write never work with AJAX calls. Put an asp:Label in your .aspx and then set the Label's Text instead.
dmacchia
Posted: Monday, April 28, 2008 8:21:19 AM
Rank: Member
Groups: Member

Joined: 10/15/2007
Posts: 23
Response.Write always works. I use it all the time. In fact, I believe this method was suggested by EO in one of your forum posts and I have adopted it since.

Past that, I guess I'll go back to the drawing board.


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.