OpenPageInsidePage

G

gh

I have an aspx page that I use a user control for the left hand menu and
a user control for the header. I have a table in the middle of the
page. When the user selects one of the links from the menu, I have
another websites home page I would like to open up inside the aspx page.
Can this be done without using frames?

Thanks
 
N

neilmcguigan

you could use an IFRAME, or do an HTTP request for the page on the
server and write its output (stripping out the head stuff)

i suppose the main question is, why do you want to do this?
 
G

gh

The customer is requesting it to be done this way. They own both sites
but the other one is written in java and he does not want to pay the
other company to do the interfacing. The other sites home page has some
special processing it does depending on the button the user clicks, on
the home page. He wants to make it appear as if the other site is part
of the new .net site I have created for them.

Thanks
 
J

John Timney \(MVP\)

Not if you expect to show the whole page, and loading the page via the .NET
web classes (ie. webrequest) would usually cause your page to be invalid
HTML - you cant have two head tags, body tags etc. Stripping to just load
the body contents could invalidate the page you are trying to load and make
it fail if it uses javascript or css. I always advise people to stick to
iframes or new windows for this type of thing.

Regards

John Timney (MVP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top