Re: I need a good solution ASAP!
From: Chad A. Beckner (ChadBeckner_at_ProspectiveLink.com)
Date: 06/03/04
- Next message: John Saunders: "Re: I need a good solution ASAP!"
- Previous message: Chad A. Beckner: "Re: I need a good solution ASAP!"
- In reply to: John Saunders: "Re: I need a good solution ASAP!"
- Next in thread: Kevin Spencer: "Re: I need a good solution ASAP!"
- Reply: Kevin Spencer: "Re: I need a good solution ASAP!"
- Reply: John Saunders: "Re: I need a good solution ASAP!"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 3 Jun 2004 12:21:35 -0500
I'm not necessary worried about .pdf files, more about .htm/.html and aspx
files. I want to "invisibly" template the page, not use a querystring setup
(such as you mentioned of template.aspx?page=<originalRequestedHtml>. I
would like for everything to appear "transparently", but also load up the
controls and other content properly. Also, I don't want to have to worry
about the darn <html><head></head><body></body></html> problems. When the
.htm files are uploaded to the server, I don't want to have to remove those
on every page every time they are uploaded/updated.
Ideas?
(Thanks!)
Chad
"John Saunders" <johnwsaundersiii@notcoldmail.com> wrote in message
news:O4%23AnhYSEHA.3020@TK2MSFTNGP10.phx.gbl...
> "Chad A. Beckner" <ChadBeckner@ProspectiveLink.com> wrote in message
> news:ui1g9cYSEHA.3016@tk2msftngp13.phx.gbl...
> > I guess my next question would be: How can I "read" the content of the
> > requested file, the integrate it into my .aspx/ascx file, then have the
> file
> > compile/execute?
>
> Your handler can use Request.Url to see what file was requested, then
> Server.MapPath to find out where it is on disk, then you can read it just
> like any other file.
>
> Actually, in this case, you might consider creating a "template" page
which
> contains an <iframe runat="server" />. Have your handler use
> Context.RewritePath to change the path to
> template.aspx?page=<originalRequestedHtml>. template.aspx could then set
the
> src attribute of the iframe to the <originalRequestedHtml>. I seem to
recall
> that I did that once to put a .pdf file inside of a template page.
> --
> John Saunders
> johnwsaundersiii at hotmail
>
>
- Next message: John Saunders: "Re: I need a good solution ASAP!"
- Previous message: Chad A. Beckner: "Re: I need a good solution ASAP!"
- In reply to: John Saunders: "Re: I need a good solution ASAP!"
- Next in thread: Kevin Spencer: "Re: I need a good solution ASAP!"
- Reply: Kevin Spencer: "Re: I need a good solution ASAP!"
- Reply: John Saunders: "Re: I need a good solution ASAP!"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|