CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Server.MapPath string insert @ runtime

Print topic Send  topic

Author Message
Christian Garnir
Posted: 08/08/2001, 10:00 PM

To finalize the last bit in a component less upload in pure asp I need to
know
is it possible to insert a session variable in to the Server.MapPath string
I want to insert a subdirectory at runtime.
I know that the category directory exist so I can include this, but what
about a subdirectory we only know from a session variable?

Chris
original code:
' Save the file to the file system
Set fso = CreateObject("Scripting.FileSystemObject")'
strPath= Server.MapPath(".\category\") & "\"
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
FSO.OpenTextFile(strPath & sFileName, nForWriting, True).Write sNewData
Set FSO = Nothing



Alexey Alexapolsky
Posted: 08/13/2001, 6:08 AM

Yes , it is possible to use this approach to determine
where to upload by session var and mappath

--
Alex

Christian Garnir <cgconsult@usa.net> wrote in message
news:9kt5e7$43p$1@news.codecharge.com...
> To finalize the last bit in a component less upload in pure asp I need to
> know
> is it possible to insert a session variable in to the Server.MapPath
string
> I want to insert a subdirectory at runtime.
> I know that the category directory exist so I can include this, but what
> about a subdirectory we only know from a session variable?
>
> Chris
> original code:
> ' Save the file to the file system
> Set fso = CreateObject("Scripting.FileSystemObject")'
> strPath= Server.MapPath(".\category\") & "\"
> Set FSO = Server.CreateObject("Scripting.FileSystemObject")
> FSO.OpenTextFile(strPath & sFileName, nForWriting, True).Write sNewData
> Set FSO = Nothing
>
>
>
>


   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.