views:

3446

answers:

3

I am looking for a JavaScript modal dialog solution for asp.net, jquery UI dialog seems good but it move dialog container to bottom of body tag. I changed the dialog code to stay dialog to asp.net form but still it's out of updatepanel.

Is there any solution or more compatible dialog that doesn't break asp.net form lifecycle?

Thanks

+1  A: 

Why not put the UpdatePanel inside the dialog container?

Robert C. Barth
I add an UpdatePanel inside the dialog. the dialog work OK but previous UpdatePanel doesn't update. I Update both UpdatePanel Manually but only one UpdatePanel Update.
Nima
You have to call .Update() on all of the panels that you want updated in the code behind.
Robert C. Barth
I tested, it doesn't work
Nima
this worked! woo hoo!
craigmoliver
+1  A: 

While I'm not sure that I know precisely what you are asking, Dave Ward has a couple of nice articles on this: http://encosia.com/2008/10/11/using-jquery-to-display-a-modal-updatepanel-confirmation/ and http://encosia.com/2008/10/04/using-jquery-to-enhance-aspnet-ajax-progress-indication/. Both articles use the jQuery BlockUI plug-in.

nshaw
+6  A: 

When jquery creates a dialog its appends the dialog div to the body tag. And this effectively moves it outside the form tag and hence no post back. The solution is trivial and this blog http://blog.roonga.com.au/2009/07/using-jquery-ui-dialog-with-aspnet-and.html explains it with example.

ravi
Useful link, thanks
Nick