asp.net jquery ajax page reload issue -


we loading child page in parent page parent.aspx follows - $("#result").load("child.aspx");

child.aspx consists of asp:linkbutton.

problem - onclick of asp:linkbutton causing child.aspx opened instead of being embedded in parent.aspx before click event.

expected - child.aspx should remain embedded in parent.aspx onclick of asp:linkbutton

note - on debug observe first page_load method first invoked followed onclick event handler.

my guess when you're loading child page div, you're alsing loading form element child.aspx well, making have 2 forms on page now. , i'll bet that form set post child.aspx. when click linkbutton, submits form , directs entire window child.aspx.

if want embed entire page inside page, may want use iframe.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -