Home All Groups Group Topic Archive Search About

Open htm and asp pagen inside an .NET aspx project

Author
26 Apr 2006 6:01 PM
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

Author
26 Apr 2006 7:24 PM
Peter Bromberg [C# MVP]
You could put a borderless IFRAME (with runat=server if necessary) and set
its src property based on the selection.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com




Show quoteHide quote
"Erik" wrote:

> 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
>
>
>
Author
27 Apr 2006 10:40 AM
Erik
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



Show quoteHide quote
"Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.com> wrote in message
news:85C44559-40E0-48A2-BCA4-E9D58D228021@microsoft.com...
> You could put a borderless IFRAME (with runat=server if necessary) and set
> its src property based on the selection.
> Peter
>
> --
> Co-founder, Eggheadcafe.com developer portal:
> http://www.eggheadcafe.com
> UnBlog:
> http://petesbloggerama.blogspot.com
>
>
>
>
> "Erik" wrote:
>
>> 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
>>
>>
>>
Author
27 Apr 2006 1:07 PM
Juan T. Llibre
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/
===================================

Show quoteHide quote
"Erik" <E***@bbinfo.com> wrote in message news:ea667beaGHA.1352@TK2MSFTNGP05.phx.gbl...
> 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
>
>
>
> "Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.com> wrote in message
> news:85C44559-40E0-48A2-BCA4-E9D58D228021@microsoft.com...
>> You could put a borderless IFRAME (with runat=server if necessary) and set
>> its src property based on the selection.
>> Peter
>>
>> --
>> Co-founder, Eggheadcafe.com developer portal:
>> http://www.eggheadcafe.com
>> UnBlog:
>> http://petesbloggerama.blogspot.com
>>
>>
>>
>>
>> "Erik" wrote:
>>
>>> 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
>>>
>>>
>>>
>
>
Author
27 Apr 2006 1:19 PM
Erik
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


Show quoteHide quote
"Juan T. Llibre" <nomailrepl***@nowhere.com> wrote in message
news:%23YPjSufaGHA.4060@TK2MSFTNGP02.phx.gbl...
> 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" <E***@bbinfo.com> wrote in message
> news:ea667beaGHA.1352@TK2MSFTNGP05.phx.gbl...
>> 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
>>
>>
>>
>> "Peter Bromberg [C# MVP]" <pbromberg@yahoo.nospammin.com> wrote in
>> message
>> news:85C44559-40E0-48A2-BCA4-E9D58D228021@microsoft.com...
>>> You could put a borderless IFRAME (with runat=server if necessary) and
>>> set
>>> its src property based on the selection.
>>> Peter
>>>
>>> --
>>> Co-founder, Eggheadcafe.com developer portal:
>>> http://www.eggheadcafe.com
>>> UnBlog:
>>> http://petesbloggerama.blogspot.com
>>>
>>>
>>>
>>>
>>> "Erik" wrote:
>>>
>>>> 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
>>>>
>>>>
>>>>
>>
>>
>
>
>