Link to home
Start Free TrialLog in
Avatar of geezen
geezen

asked on

Can I put an aspx page within an aspx page without frames?

Is it possible to put an aspx page within an aspx page without using frames?  I'm guessing that a PlaceHolder would have to be used.  If not, then what alternatives do I have?  What I'm trying to do is have the user enter some keywords for a search and pressing a Search button.  The result is going to be an HTML page similar to Google and I want it to appear below the Search button and textBox.    Thanks in advance.
Avatar of adwiv
adwiv

> The result is going to be an HTML page similar to Google and I want it to appear below the Search button and textBox.

But you don't want the page to reload?
I am not sure what you want to do here. You can create an aspx page with the search at the top followed by results. The first time you load the page, there is no search query, so you can "turn off" the search results part.

If you can explain what you want someone can provide more help.
Avatar of geezen

ASKER

Oh yeah, I want the page to reload.  Basically, the user enters their search criteria and presses the Search button.  That will trigger the page to reload with the results below the Search button and textbox.  I know that I can put a user control down there to mimic what I want to do.  However, I want to be able to have another .aspx or html page appear within a panel or placeholder beneath the button and textbox after the Search button is pressed and the page reloads.  Let me know if you need more info.

Thanks.
You can use the httpRequest & httpResponse objects to actually load the 2nd .aspx page into a string and then either response-write the string to the user's browser or assign it to a literal so that it will be rendered to the browser.

The 2nd option works best (Assigning it to a literal) beause you have better control over where the page starts showing up.

-SoN][c
ASKER CERTIFIED SOLUTION
Avatar of AvonWyss
AvonWyss
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial