Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

imagebutton click both PoupControlExtender and AsyncPostback?

$
0
0

I have an updatepanel that contains an ImageButton that has a poupcontrolextender AND must also trigger an async postback (just to be clear I am NOT referring to the ModalPopupExtender). When the image button is clicked the AJAX Popup Control is displayed, but the subsequent postback is always a full postback instead of an async postback even though its in an UpdatePanle with ChildTriggers sent to True (and IsInAsycPostback it always false). If I remove the popupcontrolextender then the click is seen correctly as an async postback.

 

Here is what Im trying to accomplish:

I have several poupcontrolextenders on the page that appear when image buttons are clicked. These panels contain .NET controls for filtering. Because these panels are visually controlled by AJAX, the controls in the panel can be made visible if a person disabled CSS on a page. In order to better secure the page I had wanted to set the visibility of the controls in the panel server-side so that disabling CSS does not display contents of the panel.

The problem is that poupcontrolextender does not contain a server-side option for .Show() or .Hide(). Therefore I cannot go back to the server - set visibility = true  - and then say PopupControlExtender.Show(). To work around this issue, I had hoped I could use the PopControlExtender to display the panel and then perform an async Postback to set the visibility of the controls in the panel. However, it doesn’t work because having the imagebutton that is both a poupcontrolextender and an async postback trigger always does a full postback.

I chose the poupcontrolextender because it will automatically positions itself near the button that opened it AND it automatically closes when it loses focus. Any ideas on how to better accomplish this?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>