Click here to Skip to main content
15,921,884 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

I'm using JQuery to redirect to another page. I need to show the contents of redirected page on the div id="maincontent" of redirected page. Currently I am showing it in the same page.

XML
<script language ="javascript" >
   function openpage(pagename) {
            $("#maincontent").load(pagename + ".aspx #maincontent", function() {
       });
    }
    </script>
  <div id="mainremoved" style="width:100%"> This is Home content </div>


How to call a Div of one page in another and display the contents in the calling page.
Posted
Updated 7-Oct-11 2:08am
v4
Comments
Muralikrishna8811 7-Oct-11 8:16am    
by using your posted code we can do that
sajithnet 7-Oct-11 8:36am    
how

This[^] may help.
 
Share this answer
 
You asked this question again and again gave you the same results but now from someone else. Reposting really won't help. Did you try anything you could find there because Dalek Dave's link looks valid to me? It might be that you run into some new problems along the way and it would be no problem to post a new question asking about that. But it now looks like you did not put any effort into it at all.

Here another link that might help:
UFrame: goodness of UpdatePanel and IFRAME combined[^]

If you run into any problems or for some reason this won't work... please post a comment explaining why, including as much useful details as possible. Only then it is possible to work out a solution.

Good luck!
 
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