CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> .NET

 Image Link Using relative path

Print topic Send  topic

Author Message
mike

Posts: 7
Posted: 11/01/2004, 3:44 AM

I am using ASP.NET C# , and I use the FileUpload Component to upload the files to the folder (.\myfiles \doc) , I notice that the file name only saved to the database with out the path , when I create the grid containing ImagLink the the file name its give me (http://ServerName/AppDir/FileName.ext) But i need this (http://ServerName/AppDir/myfiles/doc/FileName.ext)
Please How To Solve this Problem
View profile  Send private message
Heitor Miguel
Posted: 11/01/2004, 8:22 AM

hi
Use this code and replace the path with your path
Private Sub btnUpload_serverClick()....
filsouce.postedFile.saveas("c:\Temp\"&FileName.ext)

Regards
Heitor Miguel
peterr


Posts: 5971
Posted: 11/01/2004, 10:42 AM

You shouldn't replace the path, since then you may not be able to delete those files.
Instead, modify the HTML that displays the URL, so that your HTML includes the path, then the file name would be appended to it.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
mike

Posts: 7
Posted: 11/01/2004, 12:31 PM

Thanks peterr
Its Work .
View profile  Send private message

Add new topic Subscribe to topic   


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

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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