c# - load external aspx into div using jQuery load() function -


when i'm using jquery load function show external external.aspx page in div, server controls (placed outside div in original page) cause postbacks redirecting me external.aspx. bizarre bug.

the jquery command i'm using is:

$(function () { $("#mydiv").load("external.aspx"); }); 

example server control:

<a href="#" id="a" runat="server" onserverclick="a_click">click me</a> 

the a_click method:

protected void a_click(object sender, eventargs e) {      a.innertext = "hello"; } 

i have tried using $.get , it's doing same problem

iframe not option since it's messing css in ie , other browsers. i've been looking on web 2 days , found no solution.

thanks time.


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -