Welcome Guest Search | Active Topics | Sign In | Register

Callback Visibility Options
sumrob
Posted: Wednesday, June 16, 2010 9:26:48 PM
Rank: Newbie
Groups: Member

Joined: 5/24/2010
Posts: 3
I am using a callbackPanel and a dialogue control on the same page. When the call back is finished, I want to hide that portion of the page and display a simple confirmation message that is encapsulated in a DIV tag that is hidden upon the initial loading of the page.

I see that the Callback control has Visibility properties; however, setting the property to false in the code behind has no effect at all.


Here is the code:

<eo:CallbackPanel runat="server" id="CallbackPanel1" LoadingDialogID="Dialog1"
Triggers="{ControlID:btnRequest;Parameter:}">

</eo:CallbackPanel>

public handleCallback(object sender, EventArgs e)
{
//do something magical for the application that I am writing

ShowConfirmation(); is calling this from the callback code causing this not to work?
}

public ShowConfirmation()
{
CallbackPanel1.Visible = false;
divConfirmation.Visible = true;
}

BTW, setting Visible to false upon page load from the control itself works just fine.

Thanks in advance for the help!

SUMROB
eo_support
Posted: Wednesday, June 16, 2010 9:50:36 PM
Rank: Administration
Groups: Administration

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

That is normal. You can only change contents INSIDE the CallbackPanel with a callback. If you wish to change anything outside of the CallbackPanel, you should do a normal post back instead of a callback. This usually means the control that triggers the post back should not be set as a trigger of the CallbackPanel.

Thanks!
sumrob
Posted: Wednesday, June 16, 2010 10:36:44 PM
Rank: Newbie
Groups: Member

Joined: 5/24/2010
Posts: 3
Thanks. placed the div tags within the callbackPanel control itself and the code worked.

Thanks for the quick reply!


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.