Showing posts with label modal. Show all posts
Showing posts with label modal. Show all posts

Monday, March 26, 2012

ATLAS UpdatePanel and parent/child windows

Hope someone can help me... I have a parent window that contains an UpdatePanel and from that parent window I open a child window or modal dialog window...

Is there a way when the child window closes to cause an UpdatePanel in the parent window to update/fire..?

Any help would be great..!

You can use JavaScript to submit the form containing the Update Panel, (for,submit()). You may also like to have a hidden input that indicates that the submission was done due to window closing. This will enable you to check for the hidden input on the server and call UpdatePanel.Update method on the server.

Saturday, March 24, 2012

Atlas to AJAX- Open Modal Popup from Javascript

Hi,

I know that i can now show the modal popup server side but I have a case where i dont want or need a postback to show the popup. I have buttons in a repeater that and i simply show the modal on click...so in 'Atlas' i did this in javascript..

aspx..

<atlasT:ModalPopupExtenderID="ModalPopupExtender1"runat="server">

<atlasT:ModalPopupPropertiesID="MyPopup"

TargetControlID="Button1"PopupControlID="panModal"CancelControlID="btnCancel"

BackgroundCssClass="modalBackground"DropShadow="True"OkControlID="btnHiddenOK"/>

</atlasT:ModalPopupExtender>


Then in .js

$object("MyPopup")._show();


------AJAX-------

<ajaxT:ModalPopupExtenderID="ModalPopupExtender1"runat="server"

TargetControlID="Button1"PopupControlID="panModalPopup"CancelControlID="btnCancel"

BackgroundCssClass="modalBackground"DropShadow="True"OkControlID="btnHiddenOK"/>


And in .js...

$find("ModalPopupExtender1")._show();


Which doesn't work....Any ideas?

Also, I see properties in the control called Dynamic*; what are they for? Databinding?

Thx
Steve

bump... Anyone got a resolution for this?

Thx
Steve


I thnk that you need to use the show method instead of _show:

$find("ModalPopupExtender1").show();

The dynamic* properties appear to be related to dynamic population. See:


http://ajax.asp.net/ajaxtoolkit/Walkthrough/OtherNeatStuff.aspx

and search for "Easily adding dynamic population"



Thx
Thx cti.