Re: How to embed HTML into a C# component



2X4Man wrote:
I am creating a webmail solution and need to be able to display HTML e-
mails in a placeholder without screwing up the styling of the rest of
the page. I know that I could use an iframe to do this, but the
problem that I am running into is that iframe's require a src which
points to a file, I don't have an HTML file to display I just have the
text of the e-mail. Any suggestions for the best way to solve this
problem?

You can have the src attribute of the iframe point to an asp script which will output the contents of the email. Just set content-type properly and you should be good to go.

Chris.
.



Relevant Pages

  • Re: Turn off caching - Please help!
    ... In my case I have a iFrame that I load ... > with several versions of an html file. ... Still, most browsers behave this ...
    (microsoft.public.dotnet.framework.aspnet)
  • Changing the Url of an Iframe with a selection box
    ... desired url they wish to visit from the main page the iframe then loads ... passing the value of the selection wich in this case is the url to the ... independant script wich will in turn will change the src of the iframe ... the initial src then use the onchange event form the select to change ...
    (comp.lang.javascript)
  • Re: Window and iframe question
    ... option 4 isn't practical for my case because each script right ... after each iframe have problem being executed under this application ... Initial SRC attribute value for IFRAME ... AFAICT at least IE 6.x and Firefox 2.x do allow to skip SRC attribute: ...
    (comp.lang.javascript)
  • Re: Dynamic IFRAME problem
    ... Lets say the page loads and the variable rnd is set to 1 ... The documet.writeis called with Google src IFRAME ... All is good the Google frame is shown ...
    (comp.lang.javascript)
  • Re: Window and iframe question
    ... it looks like the "onload" attribute has limitation on how many ... Initial SRC attribute value for IFRAME ... Either disregard it or use document.write in SCRIPT block to insert ...
    (comp.lang.javascript)