asp.net - postbacks from inside not firing -


i have bit of asp code i'm trying show/hide via magnific popup, passing div page source.

<a href="#import-popup" tooltip="import new proposal" class="open-popup-link">insert new record</a> <div id="import-popup" class="white-popup mfp-hide">     <span>proposal import:</span>     <asp:textbox id="txtpropnum" runat="server" />     <asp:button id="btnimport" runat="server" text="import" onclick="btnimport_click" /> </div> 

js:

$(document).ready(function () {     $('.open-popup-link').magnificpopup({         type: 'inline',         midclick: true // allow opening popup on middle mouse click. set true if don't provide alternative source in href.     }); }) 

the div displays , hides fine. can't seem asp:button id="btnimport" fire it's function (which right msgbox display contents of asp:textbox) though. in fact, don't see post/get request being logged in web console.

the button however, works fine when not located inside div, , textbox accessible code behind well, know actual click function working. ideas might going on? magnific somehow preventing postback?

the solution find (as didn't see options in api) modify core code (yuck!).

i changed line:

// add dom mfp.bgoverlay.add(mfp.wrap).prependto( document.body ); 

to:

// add dom mfp.bgoverlay.add(mfp.wrap).prependto( $('#form1') ); 

where form1 id of form element.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -