Connecting Tech Pros Worldwide Help | Site Map

Saving an HTML file using ASP

Fox
Guest
 
Posts: n/a
#1: Jul 19 '05
Hi,

I am dynamically generating an HTML coded
file. Sometimes I need to save the file, but cannot
do it manually. I am hoping someone can
help me get started on how to code the file
with ASP in order to have it save itself ?
Of course I will generate it as an ASP file
first.

Regards,
Fox


Curt_C [MVP]
Guest
 
Posts: n/a
#2: Jul 19 '05

re: Saving an HTML file using ASP


huh?
Look at FSO to create/save files


--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Fox" <fox @ connexions .net> wrote in message
news:OTxj3#iXDHA.1900@TK2MSFTNGP10.phx.gbl...[color=blue]
> Hi,
>
> I am dynamically generating an HTML coded
> file. Sometimes I need to save the file, but cannot
> do it manually. I am hoping someone can
> help me get started on how to code the file
> with ASP in order to have it save itself ?
> Of course I will generate it as an ASP file
> first.
>
> Regards,
> Fox
>
>[/color]


Fox
Guest
 
Posts: n/a
#3: Jul 19 '05

re: Saving an HTML file using ASP



"Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
news:e#yjhKjXDHA.1620@TK2MSFTNGP12.phx.gbl...[color=blue]
> huh?
> Look at FSO to create/save files
>
>
> --
> ----------------------------------------------------------
> Curt Christianson (Software_AT_Darkfalz.Com)
> Owner/Lead Designer, DF-Software
> http://www.Darkfalz.com
> ---------------------------------------------------------
> ..Offering free scripts & code snippits for everyone...
> ---------------------------------------------------------
>
> "Fox" <fox @ connexions .net> wrote in message
> news:OTxj3#iXDHA.1900@TK2MSFTNGP10.phx.gbl...[color=green]
> > Hi,
> >
> > I am dynamically generating an HTML coded
> > file. Sometimes I need to save the file, but cannot
> > do it manually. I am hoping someone can
> > help me get started on how to code the file
> > with ASP in order to have it save itself ?
> > Of course I will generate it as an ASP file
> > first.
> >
> > Regards,
> > Fox
> >
> >[/color][/color]

I've been trying FSO but I keep getting error 500.
All permissions are in place. I'm stumped.
Also, how do you save a complete file, do you
have to read through it and save it line by line ?
Or is there a way to save the complete page that
was generated, all at once ?

Thanks,
Fox


Curt_C [MVP]
Guest
 
Posts: n/a
#4: Jul 19 '05

re: Saving an HTML file using ASP


Save it all into a string and use the CreateTextFile() I think...or
something like that....show the code you are using....
P.S... are you 100% sure the permissions are right in IIS AND for the
Folder?


--
----------------------------------------------------------
Curt Christianson (Software_AT_Darkfalz.Com)
Owner/Lead Designer, DF-Software
http://www.Darkfalz.com
---------------------------------------------------------
...Offering free scripts & code snippits for everyone...
---------------------------------------------------------

"Fox" <fox @ connexions .net> wrote in message
news:OgG2r1vXDHA.1896@TK2MSFTNGP12.phx.gbl...[color=blue]
>
> "Curt_C [MVP]" <Software_AT_Darkfalz.com> wrote in message
> news:e#yjhKjXDHA.1620@TK2MSFTNGP12.phx.gbl...[color=green]
> > huh?
> > Look at FSO to create/save files
> >
> >
> > --
> > ----------------------------------------------------------
> > Curt Christianson (Software_AT_Darkfalz.Com)
> > Owner/Lead Designer, DF-Software
> > http://www.Darkfalz.com
> > ---------------------------------------------------------
> > ..Offering free scripts & code snippits for everyone...
> > ---------------------------------------------------------
> >
> > "Fox" <fox @ connexions .net> wrote in message
> > news:OTxj3#iXDHA.1900@TK2MSFTNGP10.phx.gbl...[color=darkred]
> > > Hi,
> > >
> > > I am dynamically generating an HTML coded
> > > file. Sometimes I need to save the file, but cannot
> > > do it manually. I am hoping someone can
> > > help me get started on how to code the file
> > > with ASP in order to have it save itself ?
> > > Of course I will generate it as an ASP file
> > > first.
> > >
> > > Regards,
> > > Fox
> > >
> > >[/color][/color]
>
> I've been trying FSO but I keep getting error 500.
> All permissions are in place. I'm stumped.
> Also, how do you save a complete file, do you
> have to read through it and save it line by line ?
> Or is there a way to save the complete page that
> was generated, all at once ?
>
> Thanks,
> Fox
>
>[/color]


Closed Thread