Open htm and asp pagen inside an .NET aspx project

  • Thread starter Thread starter Erik
  • Start date Start date
E

Erik

Hi guys, someone know how could be possible open an htm page or asp page
(created for example using frontpage) inside an aspx page (created using
..NET 2005)?
I have a populated list box on the left of my aspx page and any time that
the user chose an item on it I have to change the htm/asp page on the right.

Any suggestion is welcome
Thank you a lot

Erik
 
You could put a borderless IFRAME (with runat=server if necessary) and set
its src property based on the selection.
Peter
 
Thank you Peter, it is exactly what I need, only one question (I'm a rookie
on ASPX code)..
how can I set src property dynamically from vb code?
Erik
 
re:
how can I set src property dynamically from vb code?

The src property can be assigned dynamically as follows:

If you have an Iframe called "myframe" :
<IFRAME id="myframe" runat="server" ></IFRAME>

In code, you can set the src with :
myframe.attributes["src"] = "http://www.somewhere.com/somepage.aspx"
or, using a relative URL, like :
myframe.attributes["src"] = "/mydir/mypage.aspx"

btw, was it necesary to cross-post to so many newsgroups ?



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
 
Thank you Juan for your answer
Sorry guys for my cross-post in 4 different groups but I'm not sure which
was right one.
Erik


Juan T. Llibre said:
re:
how can I set src property dynamically from vb code?

The src property can be assigned dynamically as follows:

If you have an Iframe called "myframe" :
<IFRAME id="myframe" runat="server" ></IFRAME>

In code, you can set the src with :
myframe.attributes["src"] = "http://www.somewhere.com/somepage.aspx"
or, using a relative URL, like :
myframe.attributes["src"] = "/mydir/mypage.aspx"

btw, was it necesary to cross-post to so many newsgroups ?



Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================

Erik said:
Thank you Peter, it is exactly what I need, only one question (I'm a
rookie on ASPX code)..
how can I set src property dynamically from vb code?
Erik



message
 
Back
Top