I'm trying to open a user control in a jquery dialog popup but when I do, none of the server side events fire, and I'm guessing the UpdatePanels will also be disabled.
Anyone come across this before and is there a way around this to ensure that the user control works as expected?
This is the code I have for it. The user control itself is an image uploader and has three update panels, and a number of buttons/imagebuttons with server side click events.
<a href="#" id="imgDialog">Open Gallery</a>
<div id="ImagePopup" style="display:none">
<uc1:ImageGallery ID="ImageGallery1" ImageSectionID="1" runat="server" />
</div>
<script type="text/javascript">
$(document).ready(function () {
$("#imgDialog").click(, function (e) {
$('#ImagePopup').dialog({
bgiframe: true,
modal: true,
show: ("slide", { direction: "down" }, 200),
hide: ("slide", { direction: "up" }, 200),
showOpt: { direction: 'up' },
width: 700,
close: function (event, ui) {
}
});
e.preventDefault();
});
});
</script>
I'm happy to move the control to an aspx page and use an iframe if necessary, but wanted to check first before I do.
Many thanks