Re: I need a good solution ASAP!

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Chad A. Beckner (ChadBeckner_at_ProspectiveLink.com)
Date: 06/03/04


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
>
>



Relevant Pages

  • Re: examples using PDF::Template
    ... >creating .pdf files on the fly is a pretty involved and painful ... >requires learning special XML syntax to set up the template, ... Well, I can't share any experience on the packages you mention, but I ...
    (comp.lang.perl.misc)
  • Re: I need a good solution ASAP!
    ... "Chad A. Beckner" wrote in message ... > I'm not necessary worried about .pdf files, ... I want to "invisibly" template the page, ... > "John Saunders" wrote in message ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Moving large document libraries
    ... open both doc libs in Edit in Datasheet Mode making sure that they are in ... > not work with PDF files. ... >>I would save template without content. ... >>drag and drop doen't work. ...
    (microsoft.public.sharepoint.windowsservices)
  • RE: force asp.net to remove cached page literals asp.net 1.1
    ... I am developing an application which uses custom httpmodules and ... > requested and retreiving the PageInfo object (which is an object describing ... > The handlerfactory looks at the PageInfo object to determine which aspx ... > template to load for the page before calling ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Help! How to create aspx file dynamically
    ... lot better help in the correct newsgroup: ... other similar technologies) use pre-designed pages (e.g. aspx) which the server uses to create dynamic HTML which is then streamed to the browser - the actual aspx pages themselves are not updated each time. ... The template is used to create a new document to display to the user based on some user input at creation time - but the underlying template itself is not changed by this process... ... all my pages as .asp & the form page as .aspx so the form standard is the ...
    (microsoft.public.dotnet.framework.aspnet)