Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Open htm and asp pagen inside an .NET aspx project

Reply
Thread Tools

Open htm and asp pagen inside an .NET aspx project

 
 
Erik
Guest
Posts: n/a
 
      04-26-2006
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


 
Reply With Quote
 
 
 
 
Peter Bromberg [C# MVP]
Guest
Posts: n/a
 
      04-26-2006
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
>
>
>

 
Reply With Quote
 
 
 
 
Erik
Guest
Posts: n/a
 
      04-27-2006
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]" <> wrote in message
news:85C44559-40E0-48A2-BCA4-...
> 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
>>
>>
>>



 
Reply With Quote
 
Juan T. Llibre
Guest
Posts: n/a
 
      04-27-2006
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" <> wrote in message news:...
> 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]" <> wrote in message
> news:85C44559-40E0-48A2-BCA4-...
>> 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
>>>
>>>
>>>

>
>




 
Reply With Quote
 
Erik
Guest
Posts: n/a
 
      04-27-2006
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" <> wrote in message
news:%...
> 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" <> wrote in message
> news:...
>> 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]" <> wrote in
>> message
>> news:85C44559-40E0-48A2-BCA4-...
>>> 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
>>>>
>>>>
>>>>

>>
>>

>
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rename *-ch03.htm to ch03-*.htm? robertchen117@gmail.com Perl Misc 6 02-06-2007 08:59 AM
Open htm and asp pagen inside an .NET aspx project Erik ASP .Net Building Controls 4 04-27-2006 01:19 PM
Open htm and asp pagen inside an .NET aspx project Erik ASP .Net 4 04-27-2006 01:19 PM
Renaming htm file to aspx Jamie Sutherland ASP .Net 1 01-20-2004 04:59 PM
Can a .aspx file be renamed to .htm? Bruce W...1 ASP .Net 11 08-23-2003 11:04 PM



Advertisments