Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames on aspx web page

Status
Not open for further replies.

bclt

Programmer
Mar 13, 2005
363
0
0
GR
hi,

is it possible to add frames to the aspx page? I need a part to be shown every time and every link click to be shown in other frame.

Tnx
 
You can add frames or any HTML codes into aspx page.

The easiest way I find is by using web control's panel. Draw the panel on the specific region where you want to alter. Then, switch to the view code mode, use the panel to add literal control containing the html codes you want to add.

For instance, assuming that the panel you add is named Panel1.

Code:
Panel1.Controls.Add(new LiteralControl("<iframe src=\"myotherpage.aspx\"></iframe>"));

You can add any html code into LiteralControl. Alternatively, you can use Response object to write everything from a scratch.

Cheers

Henry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top