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
		 
	 | 
	
		Rank: Administration Groups: Administration
 
 
Joined: 5/27/2007 Posts: 24,427 
	 | 
		   
	     
		    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!
		 
	 | 
	
		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!
		 
	 |