Click here to Skip to main content
15,905,587 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
I have able to place aspx page contents in div tag of demo.html, but problem is  when i press aspx button it get post back and instead of getting in same page(demo.html) it postback to aspx page(innerpage.aspx)


what i want is that after postback it should not call aspx page. it should maintain in the same div(in demo.html) even after executing code from code behind file of aspx.

Posted
Comments
Anurag Sinha V 27-Oct-13 3:23am    
post some code..it will be easy to understand your query

Inside div you cant get the page content instead use Iframe

XML
<iframe src="yourpage.aspx" width="200px" height="400">
  <p>Your browser does not support iframes.</p>
</iframe>
 
Share this answer
 
v2
Comments
mane0806 27-Oct-13 23:31pm    
sorry but we can do that as i have already mentioned that i have already call aspx page inside div tag.
what you can do if you firm to use it in div make an ajax call for that aspx page in header and on success of ajax put content of that aspx page using after the div uisng jquery

PHP
function LoadPage(){
  $.get('http://a_site.com/yourpage.aspx', function(data) {
    $('#YourDivId').html(data);
  });
}


then call this Loadpage On your click event of a button or on Onload event of page body.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900