asp.net updatepanel not refreshing when used in modal popup

TsuBaSa

New Member
My site uses a masterpage which I have placed the modal popup div (id="myModal") on hidden by default. I'm using twitter bootstrap modal popup (modal.js) and jquery.load() to populate the body of #myModal with another aspx page called Feedback.aspx.The modal pops up as expected and displays the feedback.aspx content (which is a complete page including doctype, html, head and body tags... maybe it shouldn't be?), but because it's not displaying within an iframe, when I submit the page, it does a postback and refreshes the parent with the entire feedback.aspx page.I'd like the feedback.aspx to simply refresh within the modal popup instead of the entire parent page.I have tried wrapping the entire body content of the feedback.aspx page in an updatepanel (with scriptmanager) and when I click the submit button now, the data gets saved to the database, and the modal window stays open, but my ModalAlertBox message doesn't display. I'm assuming my modal window isn't updating.I've tried adding updatepanel.update() to my submitbutton.click event, but it still doesn't work.Any help is appreciated!Thanks!MasterPage:\[code\] <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <div id="myModal" class="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"></div>\[/code\]Feedback.aspx (Used as #myModal content):\[code\]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> ...</head><body><form ...><asp:ScriptManager ID="ModalScriptManager" runat="server"></asp:ScriptManager><asp:UpdatePanel ID="ModalUpdatePanel" runat="server" UpdateMode="Always"> <Triggers> <asp:AsyncPostBackTrigger ControlID="btnModalSubmit" EventName="Click" /> </Triggers> <ContentTemplate> <fieldset> ... <div id="ModalAlertBox" class="alert" runat="server" visible="false"> <button type="button" class="close" data-dismiss="alert">
 
Back
Top