Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Multiple frames

Now I know people hate frames so I am trying to figure out how to have a textbox and a button and then have a static webpage open underneath it. (kinda should look like this)

|-----------|
| TextBox |
| Button |
|______________________________|
|Site |
| |
| |
| |
|______________________________|

Any ideas on how to do this without frames?
[646 byte] By [partyk1d24] at [2007-11-11 8:27:00]
# 1 Re: Multiple frames
You can put a Literal control where you have your "Site" in the above diagram, then read the static HTML file at runtime and assign the content of its <body> to the .Text property of the Literal control.

An even cleaner method is to encapsulate the above in a user control with a SourceFile property. Drop the control on your page, set its SourceFile property to the name of the HTML file, and you're done.
Phil Weber at 2007-11-11 23:13:19 >