Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   Embed an html page into a placeholder? (http://www.velocityreviews.com/forums/t74322-embed-an-html-page-into-a-placeholder.html)

John 03-01-2004 10:17 AM

Embed an html page into a placeholder?
 
Hi all,

My web app uses 3 different placeholders on one page and dynamically load
usercontrols into them. That's all fine but now I have two situations which
puzzle me:

1. I have a sub-folder of html pages from my site and I need to show one of
these pages at a time within a specific placeholder on my main page. How do
I go about doing this?

2. I have a dll which creates a server-side spreadsheet and I also need to
load this spreadsheet into a placeholder. How do I do this?

Any help forth-coming would be really appreciated.

Regards
John.



Martin Dechev 03-01-2004 12:15 PM

Re: Embed an html page into a placeholder?
 
Hi, John,

<snip>

> 1. I have a sub-folder of html pages from my site and I need to show one

of
> these pages at a time within a specific placeholder on my main page. How

do
> I go about doing this?


You can use an iframe control. Just add runat="server" and an id attributes.
Declare it as System.Web.UI.HtmlControls.HtmlGenericControl in the page
class. You can set the src, width, height, etc properties from the page
class like this:

[C#]
iframe1.Attributes["src"] = "the src";
[VB.NET]
iframe1.Attributes("src") = "the src"

> 2. I have a dll which creates a server-side spreadsheet and I also need to
> load this spreadsheet into a placeholder. How do I do this?


I'm only guessing as I don't know what this "server-side spreadsheet" looks
like. Create a usercontrol that will take this "spreadsheet" as parameter
and display the data contained in it somehow as html.

Greetings
Martin



John 03-02-2004 12:10 PM

Re: Embed an html page into a placeholder?
 
Martin,

Worked perfectly.

Thank you.
John.

"Martin Dechev" <detcheff_@hotmail.com> wrote in message
news:OIJUnd4$DHA.2040@TK2MSFTNGP12.phx.gbl...
> Hi, John,
>
> <snip>
>
> > 1. I have a sub-folder of html pages from my site and I need to show one

> of
> > these pages at a time within a specific placeholder on my main page. How

> do
> > I go about doing this?

>
> You can use an iframe control. Just add runat="server" and an id

attributes.
> Declare it as System.Web.UI.HtmlControls.HtmlGenericControl in the page
> class. You can set the src, width, height, etc properties from the page
> class like this:
>
> [C#]
> iframe1.Attributes["src"] = "the src";
> [VB.NET]
> iframe1.Attributes("src") = "the src"
>
> > 2. I have a dll which creates a server-side spreadsheet and I also need

to
> > load this spreadsheet into a placeholder. How do I do this?

>
> I'm only guessing as I don't know what this "server-side spreadsheet"

looks
> like. Create a usercontrol that will take this "spreadsheet" as parameter
> and display the data contained in it somehow as html.
>
> Greetings
> Martin
>
>





All times are GMT. The time now is 07:25 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57